Skip to content

ryankanno/time-after-time

Repository files navigation

time-after-time

image

image

Tiny grammar is tiny. Tiny library to parse out various time grammars describing the future.

At a minimum, should support the following: (this list will grow)

(✓ means it is supported)

  • Relative time with respect to now
    • ✓ 1 h[m,w,d,min,s]
    • ✓ 3w2d30s
  • Specific time today
    • ✓ 12.15 a[p]m
    • ✓ 2359
  • Specific day/time from now
    • monday[mon]
    • monday!12.15pm
    • mon!2315

TODO

  • Currently, supports only a time, needs to return the notion of a point in time (ie a timestamp).
  • Write out BNF

About

If you're lost and you look then you will find me.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published