This plugin has the following datetime functions:
now - returns the current date/time to be used by the other datetime functions.
now
date - returns a specific date/time to be used by the other functions. The input can be the following:
date
date('1974-04-25 12:20:10')
year,month,day
date(1985,6,12)
date(1755,11,1,9,40,0)
formatDateTime - returns a formatted version of the datetime. The input is:
formatDateTime
YY
YYYY
M
MM
02
MMM
MMMM
d
ddd
dddd
D
DD
H
HH
h
hh
m
mm
s
ss
A
a
year - returns the 4-digit year of the datetime. The datetime is a value created by now or by date.
year
shortYear - returns the 2-digit year of the datetime. The datetime is a value created by now or by date.
shortYear
month - returns the month of the datetime. The datetime is a value created by now or by date.
month
day - returns the day of the datetime. The datetime is a value created by now or by date.
day
hour - returns the hour of the datetime. The datetime is a value created by now or by date.
hour
minute - returns the minute of the datetime. The datetime is a value created by now or by date.
minute
second - returns the second of the datetime. The datetime is a value created by now or by date.
second
Description
This plugin has the following datetime functions:
now- returns the current date/time to be used by the other datetime functions.date- returns a specific date/time to be used by the other functions. The input can be the following:date('1974-04-25 12:20:10'). for the supported formats, read Mozilla Date Documentation.year,month,day. e.g.date(1985,6,12).date(1755,11,1,9,40,0).formatDateTime- returns a formatted version of the datetime. The input is:YY- 2-digits year.YYYY- 4-digits year.M- month.MM- zero-pad month. e.g.02.MMM- 3-char month name.MMMM- long month name.d- day of the week.ddd- 3-char day of the week.dddd- long day of the week.D- day of the month.DD- zero-pad day of the month.H- hour (0-23).HH- zero-pad hour (00-23).h- hour (1-12).hh- zero-pad hour (01-12).m- minute.mm- zero-pad minute.s- second.ss- zero-pad second.A- AM PM.a- am pm.nowor bydate.year- returns the 4-digit year of the datetime. The datetime is a value created bynowor bydate.shortYear- returns the 2-digit year of the datetime. The datetime is a value created bynowor bydate.month- returns the month of the datetime. The datetime is a value created bynowor bydate.day- returns the day of the datetime. The datetime is a value created bynowor bydate.hour- returns the hour of the datetime. The datetime is a value created bynowor bydate.minute- returns the minute of the datetime. The datetime is a value created bynowor bydate.second- returns the second of the datetime. The datetime is a value created bynowor bydate.