Janet Notes and Examples

Date and Time

(os/date)  # Returns a date-struct.
#=> {:year-day 48 :minutes 56 :month 1 :dst false :seconds 53 :year 2021
     :month-day 17 :hours 1 :week-day 4}

(os/time)  #=> 1613613422 (seconds since epoch)

(os/mktime some-date-struct)  #=> seconds since epoch

See also: