Temporal.Now
- Package
- purescript-temporal
- Repository
- philippedev101/purescript-temporal
Access the current date, time, and time zone from the system clock.
All functions in this module perform effects (reading the system clock).
Functions without an In suffix use the system's default time zone.
Functions with an In suffix take an IANA time zone name.
#zonedDateTimeISO Source
zonedDateTimeISO :: Effect ZonedDateTimeThe current date and time in the system's default time zone.
#zonedDateTimeISOIn Source
zonedDateTimeISOIn :: String -> Effect ZonedDateTimeThe current date and time in the given IANA time zone.
#plainDateTimeISO Source
plainDateTimeISO :: Effect PlainDateTimeThe current date and time (no timezone) in the system's default time zone.
#plainDateTimeISOIn Source
plainDateTimeISOIn :: String -> Effect PlainDateTimeThe current date and time (no timezone) in the given IANA time zone.
#plainDateISO Source
plainDateISO :: Effect PlainDateThe current date in the system's default time zone.
#plainDateISOIn Source
plainDateISOIn :: String -> Effect PlainDateThe current date in the given IANA time zone.
#plainTimeISO Source
plainTimeISO :: Effect PlainTimeThe current time in the system's default time zone.
#plainTimeISOIn Source
plainTimeISOIn :: String -> Effect PlainTimeThe current time in the given IANA time zone.
#timeZoneId Source
timeZoneId :: Effect StringThe system's default IANA time zone identifier (e.g. "America/New_York").