Date and Time Functions
Jump to navigation
Jump to search
Formatting for Date/Time strings is based on the C++ standard: http://www.cplusplus.com/reference/ctime/strftime/
This article is an overview of functions dealing with date and time.
- date_compare_date
- date_compare_datetime
- date_compare_time
- date_create_date
- date_create_datetime
- date_create_time
- date_current_date
- date_current_datetime
- date_current_time
- date_date_of
- date_time_of
- date_date_string
- date_time_string
- date_datetime_string
- date_days_in_month
- date_days_in_year
- date_is_today
- date_leap_year
- date_year_span
- date_month_span
- date_week_span
- date_day_span
- date_hour_span
- date_minute_span
- date_second_span
- date_valid_date
- date_valid_datetime
- date_valid_time
The following functions can be used to interpret the date-time values.
- date_get_second
- date_get_second_of_year
- date_get_minute
- date_get_minute_of_year
- date_get_hour
- date_get_hour_of_year
- date_get_day
- date_get_day_of_year
- date_get_month
- date_get_year
- date_get_week
- date_get_weekday
These functions can be used to increment the date-time values.
- date_inc_hour
- date_inc_minute
- date_inc_second
- date_inc_day
- date_inc_month
- date_inc_week
- date_inc_year
This little saying may also come in handy.
- Thirty days have September,
- April, June, and November;
- February has 28 alone,
- All the rest have 31;
- Except leap year, that's the time,
- When February's days are 29.