HangfireIO / Cronos

A fully-featured .NET library for working with Cron expressions. Built with time zones in mind and intuitively handles daylight saving time transitions
MIT License
1.01k stars 120 forks source link

Support NodaTime #55

Open thargy opened 2 years ago

thargy commented 2 years ago

Further to https://github.com/HangfireIO/Cronos/issues/36#issuecomment-817316390, is there any plan to support NodaTime fully, either via an additional shim package or just by including NodaTime in the core functionality?

For example, there's no easy way to fully implement

ZonedDateTime? GetNextOccurence(ZonedDateTime fromZoned, bool inclusive)

externally as you can't guarantee there's an equivalent System.TimeZoneInfo for any given NodaTime.DateTimeZone which is more feature rich. Whereas you can largely guarantee the opposite is true.