Changes for version 0.019 - 2023-12-09

  • Add schemas: datetime::default_*.

Modules

Convert English day-of-week name (e.g. su, MON, Tuesday) to number (1-7, 1=Monday)
Convert English month name (e.g. Dec, april) to number (1-12)
Convert timezone offset strings like UTC-500, UTC, or UTC+12:30 to number of offset seconds from UTC
Generate completion for date::dow_num
Generate completion for date::dow_nums
Generate completion for date::month_num
Generate completion for date::month_nums
Day of month (1-31), e.g. 17
Day-of-week name (abbreviated or full, in English), e.g. "su" or "Monday"
Day-of-week number (1-7, 1=Monday, like DateTime), coercible from English day-of-week name (Mo/mon/MONDAY), e.g. 1 or "Mon"
Array of required date::dow_num (day-of-week, 1-7, 1=Monday, like DateTime, with coercions), e.g. [1,3,5]
Hour of day (0-23), e.g. 12
Minute of hour (0-59), e.g. 30
Month number/name (abbreviated or full, in English), e.g. 1 or "jan" or "September"
Month name (abbreviated or full, in English), e.g. "jan" or "September"
Month number, coercible from English month names (Dec/DECEMBER), e.g. 2 or "Feb"
Array of required month numbers (1-12, with coercions), e.g. [6,12]
Second of minute (0-60), e.g. 39
Timezone name (validity not checked), e.g. "Asia/Jakarta"
Timezone offset in seconds from UTC (only known offsets are allowd, coercible from string), e.g. 25200 or "+07:00"
Timezone offset in seconds from UTC (any offset is allowed, coercible from string), e.g. 1 or 25200 e.g. "UTC+7"
Year number (AD, starting from 1), e.g. 2022
Datetime with default of end of last month (23:59:59/60), local time
Datetime with default of end of last month (23:59:59/60), UTC
Datetime with default of end of yesterday (23:59:59/60), local time
Datetime with default of end of yesterday (23:59:59/60), UTC
Datetime with default of start of this month (00:00:00 day 1), local time
Datetime with default of start of this month (00:00:00 day 1), UTC
Datetime with default of start of today (00:00:00), local time
Datetime with default of start of today (00:00:00), UTC
Day of month (1-31), e.g. 17
Day-of-week name (abbreviated or full, in English), e.g. "su" or "Monday"
Day-of-week number (1-7, 1=Monday, like DateTime), coercible from English day-of-week name (Mo/mon/MONDAY), e.g. 1 or "Mon"
Array of required date::dow_num (day-of-week, 1-7, 1=Monday, like DateTime, with coercions), e.g. [1,3,5]
Hour of day (0-23), e.g. 12
Minute of hour (0-59), e.g. 30
Month number/name (abbreviated or full, in English), e.g. 1 or "jan" or "September"
Month name (abbreviated or full, in English), e.g. "jan" or "September"
Month number, coercible from English month names (Dec/DECEMBER), e.g. 2 or "Feb"
Array of required month numbers (1-12, with coercions), e.g. [6,12]
Second of minute (0-60), e.g. 39
Timezone name (validity not checked), e.g. "Asia/Jakarta"
Timezone offset in seconds from UTC (only known offsets are allowd, coercible from string), e.g. 25200 or "+07:00"
Timezone offset in seconds from UTC (any offset is allowed, coercible from string), e.g. 1 or 25200 e.g. "UTC+7"
Year number (AD, starting from 1), e.g. 2022
Datetime with default of end of last month (23:59:59/60), local time
Datetime with default of end of last month (23:59:59/60), UTC
Datetime with default of end of yesterday (23:59:59/60), local time
Datetime with default of end of yesterday (23:59:59/60), UTC
Datetime with default of start of this month (00:00:00 day 1), local time
Datetime with default of start of this month (00:00:00 day 1), UTC
Datetime with default of start of today (00:00:00), local time
Datetime with default of start of today (00:00:00), UTC
Sah schemas related to date