The ISO8601 format, which is always 24 or 27 characters long, used for representing date and time in
a standardized format. The format follows the pattern uuuu-MM-dd'T'HH:mm:ssZ.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The americanDate format, which follows the pattern MM-dd-uuuu.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The europeanDate format, which follows the pattern dd-MM-uuuu.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The time12Hour format, which follows the pattern hh:mm:ss aa for representing time
in a 12-hour clock format with an upper case AM/PM marker.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The Time24Hour format, which follows the pattern HH:mm:ss for representing time
in a 24-hour clock format.
Instances For
The DateTimeZone24Hour format, which follows the pattern uuuu-MM-dd:HH:mm:ss.SSSSSSSSS for
representing date, time, and time zone.
Instances For
The DateTimeWithZone format, which follows the pattern uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSSZZZ
for representing date, time, and time zone.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanTime24Hour format, which follows the pattern HH:mm:ss.SSSSSSSSS for representing time
in a 24-hour clock format. It uses the default value that can be parsed with the
notation of dates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanTime24HourNoNanos format, which follows the pattern HH:mm:ss for representing time
in a 24-hour clock format. It uses the default value that can be parsed with the
notation of dates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanDateTime24Hour format, which follows the pattern uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSS for
representing date, time, and time zone. It uses the default value that can be parsed with the
notation of dates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanDateTime24HourNoNanos format, which follows the pattern uuuu-MM-dd'T'HH:mm:ss for
representing date, time, and time zone. It uses the default value that can be parsed with the
notation of dates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanDateTimeWithZone format, which follows the pattern uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSSZZZZZ
for representing date, time, and time zone. It uses the default value that can be parsed with the
notation of dates.
Instances For
The leanDateTimeWithZoneNoNanos format, which follows the pattern uuuu-MM-dd'T'HH:mm:ssZZZZZ
for representing date, time, and time zone. It uses the default value that can be parsed with the
notation of dates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanDateTimeWithIdentifier format, which follows the pattern uuuu-MM-dd'T'HH:mm:ss[z]
for representing date, time, and time zone. It uses the default value that can be parsed with the
notation of dates.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The leanDateTimeWithIdentifierAndNanos format, which follows the pattern uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSS'[z]'
for representing date, time, and time zone. It uses the default value that can be parsed with the
notation of dates.
Instances For
The Lean Date format, which follows the pattern uuuu-MM-dd. It uses the default value that can be parsed with the
notation of dates.
Instances For
The SQLDate format, which follows the pattern uuuu-MM-dd and is commonly used
in SQL databases to represent dates.
Instances For
The LongDateFormat, which follows the pattern EEEE, MMMM D, uuuu HH:mm:ss for
representing a full date and time with the day of the week and month name.
Instances For
The AscTime format, which follows the pattern EEE MMM d HH:mm:ss uuuu. This format
is often used in older systems for logging and time-stamping events.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The RFC822 format, which follows the pattern eee, dd MMM uuuu HH:mm:ss ZZZ.
This format is used in email headers and HTTP headers.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The RFC850 format, which follows the pattern eee, dd-MMM-YY HH:mm:ss ZZZ.
This format is an older standard for representing date and time in headers.
Instances For
Parses a string into a TimeZone object. The input string must be in the format "VV ZZZZZ".
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a string representing an offset into an Offset object. The input string must follow the "xxx" format.
Equations
- Std.Time.TimeZone.Offset.fromOffset input = { string := [Std.Time.FormatPart.modifier (Std.Time.Modifier.x Std.Time.OffsetX.hourMinuteColon)] }.parseBuilder some input
Instances For
Formats a PlainDate using a specific format.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a date string in the American format (MM-dd-uuuu) and returns a PlainDate.
Instances For
Converts a date in the American format (MM-dd-uuuu) into a String.
Instances For
Parses a date string in the SQL format (uuuu-MM-dd) and returns a PlainDate.
Equations
- Std.Time.PlainDate.fromSQLDateString input = Std.Time.Formats.sqlDate.parseBuilder Std.Time.PlainDate.ofYearMonthDay? input
Instances For
Converts a date in the SQL format (uuuu-MM-dd) into a String.
Equations
- input.toSQLDateString = Std.Time.Formats.sqlDate.formatBuilder input.year input.month input.day
Instances For
Parses a date string in the Lean format (uuuu-MM-dd) and returns a PlainDate.
Instances For
Converts a date in the Lean format (uuuu-MM-dd) into a String.
Equations
- input.toLeanDateString = Std.Time.Formats.leanDate.formatBuilder input.year input.month input.day
Instances For
Parses a String in the AmericanDate or SQLDate format and returns a PlainDate.
Instances For
Equations
- Std.Time.PlainDate.instToString = { toString := Std.Time.PlainDate.toLeanDateString }
Equations
- One or more equations did not get rendered due to their size.
Formats a PlainTime using a specific format.
Instances For
Parses a time string in the 24-hour format (HH:mm:ss) and returns a PlainTime.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Formats a PlainTime value into a 24-hour format string (HH:mm:ss).
Instances For
Parses a time string in the lean 24-hour format (HH:mm:ss.SSSSSSSSS or HH:mm:ss) and returns a PlainTime.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Formats a PlainTime value into a 24-hour format string (HH:mm:ss.SSSSSSSSS).
Instances For
Parses a time string in the 12-hour format (hh:mm:ss aa) and returns a PlainTime.
Instances For
Formats a PlainTime value into a 12-hour format string (hh:mm:ss aa).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a String in the Time12Hour or Time24Hour format and returns a PlainTime.
Equations
- Std.Time.PlainTime.parse input = (Std.Time.PlainTime.fromTime12Hour input <|> Std.Time.PlainTime.fromTime24Hour input)
Instances For
Equations
- Std.Time.PlainTime.instToString = { toString := Std.Time.PlainTime.toLeanTime24Hour }
Equations
- One or more equations did not get rendered due to their size.
Formats a ZonedDateTime using a specific format.
Instances For
Parses a String in the ISO8601 format and returns a ZonedDateTime.
Equations
- Std.Time.ZonedDateTime.fromISO8601String input = Std.Time.Formats.iso8601.parse input
Instances For
Formats a ZonedDateTime value into an ISO8601 string.
Equations
- date.toISO8601String = Std.Time.Formats.iso8601.format date.toDateTime
Instances For
Parses a String in the rfc822 format and returns a ZonedDateTime.
Equations
- Std.Time.ZonedDateTime.fromRFC822String input = Std.Time.Formats.rfc822.parse input
Instances For
Formats a ZonedDateTime value into an RFC822 format string.
Equations
- date.toRFC822String = Std.Time.Formats.rfc822.format date.toDateTime
Instances For
Parses a String in the rfc850 format and returns a ZonedDateTime.
Instances For
Formats a ZonedDateTime value into an RFC850 format string.
Equations
- date.toRFC850String = Std.Time.Formats.rfc850.format date.toDateTime
Instances For
Parses a String in the dateTimeWithZone format and returns a ZonedDateTime object in the GMT time zone.
Equations
Instances For
Formats a ZonedDateTime value into a simple date time with timezone string.
Equations
- pdt.toDateTimeWithZoneString = Std.Time.Formats.dateTimeWithZone.format pdt.toDateTime
Instances For
Parses a String in the lean date time format with timezone format and returns a ZonedDateTime object.
Equations
- Std.Time.ZonedDateTime.fromLeanDateTimeWithZoneString input = (Std.Time.Formats.leanDateTimeWithZone.parse input <|> Std.Time.Formats.leanDateTimeWithZoneNoNanos.parse input)
Instances For
Parses a String in the lean date time format with identifier and returns a ZonedDateTime object.
Equations
- Std.Time.ZonedDateTime.fromLeanDateTimeWithIdentifierString input = (Std.Time.Formats.leanDateTimeWithIdentifier.parse input <|> Std.Time.Formats.leanDateTimeWithIdentifierAndNanos.parse input)
Instances For
Formats a DateTime value into a simple date time with timezone string that can be parsed by the date% notation.
Instances For
Formats a DateTime value into a simple date time with timezone string that can be parsed by the date% notation with the timezone identifier.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a String in the ISO8601, RFC822 or RFC850 format and returns a ZonedDateTime.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Formats a PlainDateTime using a specific format.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parses a String in the AscTime format and returns a PlainDateTime object in the GMT time zone.
Equations
- Std.Time.PlainDateTime.fromAscTimeString input = Except.map Std.Time.DateTime.toPlainDateTime (Std.Time.Formats.ascTime.parse input)
Instances For
Formats a PlainDateTime value into an AscTime format string.
Instances For
Parses a String in the LongDateFormat and returns a PlainDateTime object in the GMT time zone.
Equations
- Std.Time.PlainDateTime.fromLongDateFormatString input = Except.map Std.Time.DateTime.toPlainDateTime (Std.Time.Formats.longDateFormat.parse input)
Instances For
Formats a PlainDateTime value into a LongDateFormat string.
Instances For
Parses a String in the DateTime format and returns a PlainDateTime.
Equations
- Std.Time.PlainDateTime.fromDateTimeString input = Except.map Std.Time.DateTime.toPlainDateTime (Std.Time.Formats.dateTime24Hour.parse input)
Instances For
Formats a PlainDateTime value into a DateTime format string.
Equations
- pdt.toDateTimeString = Std.Time.Formats.dateTime24Hour.formatBuilder pdt.year pdt.month pdt.day pdt.hour pdt.minute pdt.time.second pdt.nanosecond
Instances For
Parses a String in the DateTime format and returns a PlainDateTime.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Formats a PlainDateTime value into a DateTime format string.
Equations
- pdt.toLeanDateTimeString = Std.Time.Formats.leanDateTime24Hour.formatBuilder pdt.year pdt.month pdt.day pdt.hour pdt.minute pdt.time.second pdt.nanosecond
Instances For
Parses a String in the AscTime or LongDate format and returns a PlainDateTime.
Instances For
Formats a DateTime using a specific format.
Instances For
Parses a String in the AscTime format and returns a DateTime object in the GMT time zone.
Instances For
Formats a DateTime value into an AscTime format string.
Instances For
Parses a String in the LongDateFormat and returns a DateTime object in the GMT time zone.
Instances For
Formats a DateTime value into a LongDateFormat string.
Equations
- datetime.toLongDateFormatString = Std.Time.Formats.longDateFormat.format datetime
Instances For
Formats a DateTime value into an ISO8601 string.
Equations
- date.toISO8601String = Std.Time.Formats.iso8601.format date
Instances For
Formats a DateTime value into an RFC822 format string.
Instances For
Formats a DateTime value into an RFC850 format string.
Equations
- date.toRFC850String = Std.Time.Formats.rfc850.format date
Instances For
Formats a DateTime value into a DateTimeWithZone format string.
Equations
- pdt.toDateTimeWithZoneString = Std.Time.Formats.dateTimeWithZone.format pdt
Instances For
Formats a DateTime value into a DateTimeWithZone format string that can be parsed by date%.
Equations
- pdt.toLeanDateTimeWithZoneString = Std.Time.Formats.leanDateTimeWithZone.format pdt
Instances For
Parses a String in the AscTime or LongDate format and returns a DateTime.
Equations
Instances For
Equations
- Std.Time.DateTime.instRepr = { reprPrec := fun (data : Std.Time.DateTime tz) => Repr.addAppParen (Std.Format.text data.toLeanDateTimeWithZoneString) }
Equations
- Std.Time.DateTime.instToString = { toString := Std.Time.DateTime.toLeanDateTimeWithZoneString }