DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Pear Date format¶
Property
Property:
Description
Description:
Property
%a
Description
abbreviated weekday name (Sun, Mon, Tue)
Property
%A
Description
full weekday name (Sunday, Monday, Tuesday)
Property
%b
Description
abbreviated month name (Jan, Feb, Mar)
Property
%B
Description
full month name (January, February, March)
Property
%C
Description
century number (the year divided by 100 and truncated to an integer, range 00 to 99)
Property
%d
Description
day of month (range 00 to 31)
Property
%D
Description
same as “%m/%d/%y”
Property
%e
Description
day of month, single digit (range 0 to 31)
Property
%E
Description
number of days since unspecified epoch (integer, Date_Calc::dateToDays())
Property
%H
Description
hour as decimal number (00 to 23)
Property
%I
Description
hour as decimal number on 12-hour clock (01 to 12)
Property
%j
Description
day of year (range 001 to 366)
Property
%m
Description
month as decimal number (range 01 to 12)
Property
%M
Description
minute as a decimal number (00 to 59)
Property
%n
Description
newline character (n)
Property
%N
Description
month (1 to 12)
Property
%O
Description
dst-corrected timezone offset expressed as “+/-HH:MM”
Property
%o
Description
raw timezone offset expressed as “+/-HH:MM”
Property
%p
Description
either ‘am’ or ‘pm’ depending on the time
Property
%P
Description
either ‘AM’ or ‘PM’ depending on the time
Property
%r
Description
time in am/pm notation, same as “%I:%M:%S %p”
Property
%R
Description
time in 24-hour notation, same as “%H:%M”
Property
%s
Description
seconds including the decimal representation smaller than one second
Property
%S
Description
seconds as a decimal number (00 to 59)
Property
%t
Description
tab character (t)
Property
%T
Description
current time, same as “%H:%M:%S”
Property
%w
Description
weekday as decimal (0 = Sunday)
Property
%U
Description
week number of current year, first sunday as first week
Property
%y
Description
year as decimal (range 00 to 99)
Property
%Y
Description
year as decimal including century (range 0000 to 9999)
Property
%%
Description
literal ‘%’