tisonkun / cronexpr

Calculate the next timestamp matching a given crontab pattern
https://docs.rs/cronexpr
Apache License 2.0
47 stars 2 forks source link

[TO BE DETERMINATE] Optionally accept seconds and make timestamp optional #16

Open tisonkun opened 1 week ago

tisonkun commented 1 week ago

Coming from https://news.ycombinator.com/item?id=41656872.

@tisonkun: Actually, this is possible to extend the interface with options to accept:

  1. Optional Timezone.
  2. Second-level precision (perhaps feature flags are more suitable here)

It just falls out my first requirements so I don't support it. Being too generic is a common source of failure in my experience.