Date
Last updated
Last updated
Please note: This page is under construction and has not been finished yet.
Calculate difference between two dates for display in terms of years/months/weeks....
Parameter | Type | Description | Mandatory? |
---|---|---|---|
Convert datestamp to human readable date. System time offset is considered.
Return an array of language terms representing months
Parameter | Type | Description | Mandatory? |
---|---|---|---|
The configuration of the mask formats are specified in Admin Area > Preferences > Date Display options.
Parameter | Type | Description | Mandatory? |
---|---|---|---|
older_date
integer
UNIX timestamp
Yes
newer_date
integer
UNIX timestamp
Default: current time
No
mode
boolean
if true return value is an array. Otherwise return value is a string
Default: false
No
show_secs
boolean
Default: true
No
format
string
Format of the human readable date. Options:
long
short (omits the year)
Default: long
No
type
string
Options:
month (August)
month-short (Aug)
day (Tuesday)
day-short (Tue)
day-shortest (Tu)
Default: month
Yes
datestamp
integer
UNIX timestamp
Yes
mask
string
Format of the human readable date. Options:
long
short
forum
relative
Default: long
No
(any strftime()
valid string)