This module provides additional extractions to those available in the
core Date library.
Extract the quarter of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the integer 2.
Extract the ordinal day of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the integer 174.
Extract the fractional day of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the float 0.4895833333333333.
Extract the weekday number (beginning at 1 for Monday) of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the integer 6.
Extract the week number of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the integer 25.
Extract the week-numbering year of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the integer 1990.
Extract the local offset from UTC time, in minutes, of a date. Given a date with a local offset of UTC-05:00 this returns the integer -300.
Extract the month number of a date. Given the date 23 June 1990 at 11:45 a.m. this returns the integer 6.