Skip to main content

Module datetime

Module datetime 

Source
Expand description

Parsing for Date, DateTime, and MonthDay.

Structsยง

DateTimeRecord ๐Ÿ”’
A DateTime Parse Node that contains the date, time, and offset info.

Functionsยง

check_date_validity ๐Ÿ”’
days_in_month ๐Ÿ”’
Utilty to return the days in month, returns None if month is invalid
in_leap_year ๐Ÿ”’
Utility that returns whether a year is a leap year.
is_valid_month_day ๐Ÿ”’
parse_annotated_date_time ๐Ÿ”’
This function handles parsing for AnnotatedDateTime, AnnotatedDateTimeTimeRequred, and TemporalInstantString. according to the requirements provided via Spec.
parse_annotated_month_day ๐Ÿ”’
Parses an AnnotatedMonthDay.
parse_annotated_year_month ๐Ÿ”’
Parse an annotated YearMonth
parse_date ๐Ÿ”’
Parses Date record.
parse_date_day ๐Ÿ”’
parse_date_month ๐Ÿ”’
parse_date_time ๐Ÿ”’
Parses a DateTime record.
parse_date_year ๐Ÿ”’
parse_month_day ๐Ÿ”’
Parses a DateSpecMonthDay
parse_year_month ๐Ÿ”’