Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Informational    Forum Updates  ›  Advanced Time Options
Users Browsing Forum
No Members and 6 Guests

Advanced Time Options  This thread currently has 2,223 views. Print
1 Pages 1 Recommend Thread
Justin
October 30, 2006, 8:51pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,080
Gender: Male
Posts Per Day: 6.42
Reputation: 93.42%
Reputation Score: +298 / -21
Time Online: 37 days 1 hours 13 minutes
Location: Tallassee, AL
Age: 22
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
  • Format: l dS of F Y h:i:s A
    Yields: Monday 15th of August 2005 03:12:46 PM

  • Format l \t\h\e jS
    Yields: Wednesday the 15th

  • Format F j, Y, g:i a
    Yields: March 10, 2001, 5:16 pm

  • Format: m.d.y
    Yields 03.10.01

  • Format: j, n, Y
    Yields 10, 3, 2001

  • Format: Ymd
    Yields 20010310

  • Format: \I\t \i\s \t\h\e jS \d\a\y.
    Yields It is the 10th day.

  • Format: D M j G:i:s Y
    Yields Sat Mar 10 15:16:08 2001

  • Format: H:i:s
    Yields 17:16:17

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.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV


Revision History (10 edits; 3 reasons shown)
Justin  -  March 4, 2008, 2:23am
Justin  -  March 4, 2008, 2:20am
Justin  -  December 16, 2007, 3:35pm
Logged Offline
Site Site Private Message Private message
whiskymac
October 31, 2006, 6:21am Report to Moderator Report to Moderator

www.breathemini.co.uk
Posts: 302
Gender: Male
Posts Per Day: 0.27
Reputation: 100.00%
Reputation Score: +1 / -0
Time Online: 2 days 10 hours 47 minutes
Location: Preston
Thats funky! i like




A growing community for the classic Mini - Come Join in
http://www.BreatheMini.co.uk
Logged Offline
Site Site Private Message Private message Reply: 1 - 2
Johannes
May 9, 2007, 12:19pm Report to Moderator Report to Moderator

E-Blah Member
Posts: 8
Gender: Male
Posts Per Day: 0.01
Time Online: 2 hours 57 minutes
Location: The Netherlands
Age: 54
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


How can it be, as my own death is imminent
That You, oh Lord, still love me

(Drawn and Quartered, Tourniquet)
Logged Offline
Private Message Private message Reply: 2 - 2
1 Pages 1 Recommend Thread
Print

E-Blah Community    Informational    Forum Updates  ›  Advanced Time Options

Thread Tags