- date_vars
- Populate variables with today's date
- USAGE: date_vars [VAR ...]
- Global variables set: date_vars[] ...
- datenum
- Convert DATE to day NUMBER in C.E.
- USAGE: datenum [DATE [VAR]]
- day_of_week
- Convert ISO date (YYYY-MM-DD) to day of the week (Sunday = 0)
- USAGE: day_of_week DATE [shortname|dayname|VAR]
- dayname
- Convert ISO date (YYYY-MM-DD) to day of the week (Sunday = 0)
- USAGE: day_of_week DATE [shortname|dayname|VAR]
- days_in_month
- Return number of days in given month
- USAGE: days_in_month [VAR] MONTHNUM [year]
- Required functions: is_leap_year(), is_var()
- Global variables set: days_in_month
- daysdiff
- Find the number of days between two dates
- USAGE: daysdiff DATE1 DATE2 [VAR]
- easter
- Calculate Easter (and related dates) for any year
- USAGE: easter [YEAR]
- Variables set: Easter Palm_Sun Good_Fri Ash_Wed
- eday
- Get day number since the epoch (1970-01-01 = 1)
- USAGE: eday YYYY-MM-DD[THH:MM:SS] [VAR]
- REQUIRES: bash4.3, is_leap_year(), vshow()
- eday2date
- Convert eday (days since 1970-01-01) to date
- USAGE: eday2date NUM [VAR]
- err
- Return from function with error message
- USAGE: command || err ERRNUM [MESSAGE] || return
- eseconds2date
- Convert seconds since the epoch to ISO date
- is_date
- Return success if argument is a valid date
- USAGE: is_date STRING ...
- Required functions: days_in_month(), is_leap_year()
- is_leap_year
- Return successfully if YEAR (or current year) is a leap year
- USAGE: is_leap_year [YEAR]
- jday
- Return day in year for given date
- USAGE: jday DATE [VAR]
- Required functions: is_date() is_leap_year() is_var() today() vshow()
- month2num
- Convert name of month to number
- USAGE: month2num MONTHNAME [VAR]
- num2month
- Convert number to month name
- USAGE: num2month MONTHNUMBER [VAR]
- num2shortmonth
- Convert number to abbreviated month name
- USAGE: num2month MONTHNUMBER [VAR]
- numdate
- Convert day number to calendar date
- USAGE: numdate DAYNUM [VAR]
- parsedate
- Parse various formats of date
- USAGE: parsedate ...
- qdate
- Print information about a given date number
- USAGE: qdate YYYYMMDD
- random_date
- Return random date in given range of years
- USAGE: random_date FIRST LAST [VAR]
- Global variables set: random_date [VAR]
- showdate
- Convert ISO date to English date
- USAGE: showdate ISO_DATE [VAR]
- split_date
- Splite date[time] string into year month day [hour minute second]
- USAGE: split_date STRING ...
- Global variable set: split_date year month day [hour minute second]
- today
- Return today's date
- USAGE: today [VAR]
- {
- COPYING
- GNU GPL