floraison / et-orbi

Time zones for fugit and rufus-scheduler. Urbi et Orbi.
MIT License
24 stars 11 forks source link

time comparisons between EoTime and Time #7

Closed jmettraux closed 5 years ago

jmettraux commented 6 years ago

Investigate, could I allow comparison between EoTime and Time directly, I guess EoTime#< (et al) could help, but I wouldn't want to override Time#< (et al).

Triggerred by https://stackoverflow.com/questions/44841957/error-when-comparing-dates-in-sidekiq-cron

jmettraux commented 5 years ago

Closing. Not forcing anything on ::Time, but EtOrbi::Eotime accepts Time (or anything that responds to #to_f for comparison, though not #==).