Ubuntu Manpages

AAT::Datetime

AAT Datetime module

Get the Month Name

Parameters:
$month - Integer value of Month

Returns:
$month_name - String value of Month

Get the number of days in specified month

Parameters:
$year - year
$month - month

Returns:
$daysinmonth - Number of days

Returns Delta in minutes between 2 dates

Returns number of seconds since 1970

Get the Day of Week (1 for Monday, 7 for Sunday)

Parameters:
$year - year
$month - month
$day - day

Returns:
$dayofweek - Day of Week

Get the Day of Week

Parameters:
$wday - Integer value of Day of Week

Returns:
$weekday_name - String value of Day of Week

Get the Week of the Year

Current_Day()

Returns an Array of 2 hashrefs with the Begin & End of the Day

Current_Hour()

Returns an Array of 2 hashrefs with the Begin & End of the Hour

Current_Month()

Returns an Array of 2 hashrefs with the Begin & End of the Month

Current_Week()

Returns an Array of 2 hashrefs with the Begin & End of the Week

Current_Year()

Returns an Array of 2 hashrefs with the Begin & End of the Year

Last_Day()

Returns an Array of 2 hashrefs with the Begin & End of the Last/Previous Day

Last_Hour()

Returns an Array of 2 hashrefs with the Begin & End of the Last/Previous Hour

Last_Month()

Returns an Array of 2 hashrefs with the Begin & End of the Last/Previous Month

Last_Week()

Returns an Array of 2 hashrefs with the Begin & End of the Last/Previous Week

Last_Year()

Returns an Array of 2 hashrefs with the Begin & End of the Last/Previous Year

Sebastien Thebert <octo.devel@gmail.com>