![]() |
|
more useful options | |
PerlMonks |
Date-Time formatsby SiteDocClan (Initiate) |
on Dec 01, 2008 at 04:27 UTC ( #727004=sitefaqlet: print w/replies, xml ) | Need Help?? |
Most places that display a date-time on the site use your personal timezone (see Timezone Settings) and most of those use one of your personal date-time format strings (see User settings). The "abbreviated" format for date-times is used when displaying a list (in a table layout). It defaults to "%Y‑%m%8209;%d %H:%M" (where ‑ is a "non-breaking hyphen" to prevent your browser from wrapping after a hyphen in the middle of a date). The result looks like 2008‑11‑30 23:59. The main (non-abbreviated) date-time format defaults to "%b %d, %Y at %H:%M %Z" which produces results like "Nov 30, 2008 at 23:59 EST". You can set either format to just "ISO" as short-hand for "%Y‑%m‑%d %H:%M:%S %Z" which looks like "2008‑11‑30 23:59:30 EST" or to "RFC822" for "%a, %d %b %Y %H:%M:%S %z" giving "Sun, 31 Nov 2008 23:59:30 -0800". The following format strings are supported (mostly just what strftime() supports):
|
|