View Source
      
    
 Tempus    
  
  
  
  
Easy handling of time periods aka slots, like business days, holidays, etc.
Installation
def deps do
  [
    {:tempus, "~> 0.1"}
  ]
endChangelog
0.16.0— [:books:] tiny code improvements,v1.18.0, deprecation ofis_covered/20.15.0— [:tada:]Tempus.parse_cron/2and low-levelTempus.Crontab0.14.1— [:ant:]recurrent/3has now concerned about DST (fuck DST btw)0.14.0— [:books:] refactoring of guard usage and docs update0.13.3— [:ant:] avoid crash on the incorrect input of slots0.13.2— [:tada:]Tempus.Slots.Stream.recurrent/3to introduce cron-like streams0.13.0— [:tada:] different calendars experimental support0.12.1— [:tada:] timezones and more guards exported0.11.0— [:books:] better coverage0.10.2— [:ant:]add/4and tests for it: fixed0.10.1— [:ant:]split/4and tests for it: fixed0.10.0— complete rewrite of implementations, 3–10× faster,Slotsform an Abelian group now0.9.1—Tempus.Sigils.parse/10.9.0—Tempus.Guards,Tempus.slot/{1,2},Tempus.guess/1, better sigils, prepared for:tempus_sql0.8.0— improveTempus.Sigils, prepared for:tempus_sql0.7.3—truncate: boolean() | non_neg_integer()to truncateSlotsinspection0.7.2—Slots.merge/10.7.1— treat infinite slot as special not-covering anything0.7.0—merge/2is 6× faster,Slot.neighbour?/2,Tempus.slice/4,Tempus.drop_while/2,Tempus.take_while/20.6.0— compatibility with Elixir v1.14 (no greek in variables names) meh0.5.0— stricter:telemetriasupport0.4.2— make:telemetriadependency fully optional0.4.0—~Isigil to ease slots creation, wrap date/times, fancy inspect0.3.0— drastical performance improvements, benchmarks0.2.4— fixed bug when finding next free/busy for empty slots0.2.3— correctly handle empty slots innext_busy/2/next_free/20.2.2—Slot.shift_tz/30.2.1— accept function as well as stream inSlots.merge/20.2.0— many improvements,Tempus.add/2similar toDateTime.add/4but considering slots