Print Topic - Archive

E-Blah Community  /  Forum Updates  /  Advanced Time Options
Posted by: Justin, October 30, 2006, 8:51pm
The "Advanced Time" options in the Member Center is based off of the php date function.  Most date formats will work from the php version.



Quick Reference
Format Char.
Description
Example returned values
Day
dDay of the month, 2 digits with leading zeros01 to 31
dDay of the month, 2 digits with leading zeros01 to 31
DA textual representation of a day, three lettersMon through Sun
jDay of the month without leading zeros1 to 31
lA full textual representation of the day of the weekSunday through Saturday
NISO-8601 numeric representation of the day of the week1 (for Monday) through 7 (for Sunday)
SEnglish ordinal suffix for the day of the month, 2 charactersst, nd, rd or th.
EEnglish ordinal suffix for the day of the month, 2 characters, superscriptedst, nd, rd or th
wNumeric representation of the day of the week0 (for Sunday) through 6 (for Saturday)
zThe day of the year (starting from 0)0 through 365
  
Month
FA full textual representation of a month, such as January or MarchJanuary through December
mNumeric representation of a month, with leading zeros01 through 12
MA short textual representation of a month, three lettersJan through Dec
nNumeric representation of a month, without leading zeros1 through 12
  
Year
YA full numeric representation of a year, 4 digitsExamples: 1999 or 2003
yA two digit representation of a yearExamples: 99 or 03
  
Time
aLowercase Ante meridiem and Post meridiemam or pm
AUppercase Ante meridiem and Post meridiemAM or PM
g12-hour format of an hour without leading zeros1 through 12
G24-hour format of an hour without leading zeros0 through 23
h12-hour format of an hour with leading zeros01 through 12
H24-hour format of an hour with leading zeros00 through 23
iMinutes with leading zeros00 to 59
sSeconds, with leading zeros00 through 59

Real-world Examples

One last note, if you don't want a character to be processed (such as the word "at") you will need to add a slash before that character (such as "\a\t").

Questions and comments are welcome here.
Posted by: whiskymac, October 31, 2006, 6:21am; Reply: 1
Thats funky! i like
Posted by: Johannes, May 9, 2007, 12:19pm; Reply: 2
Hi Justin,

would be nice to have the same/similar options on the calender.
For instance, in Europe we are not very used to am/pm (personally I never know when it is am or pm).
I would very welcome at least a 24 hr clock option.

Johannes
Print page generated: November 20, 2008, 3:27pm