DateTim...US_POSIX(3)
π DateTim...US_POSIX(3) π
okay so bestie, this is the manual page for DateTim...US_POSIX(3) β yes, the DateTime::Locale::en_US_POSIX one β and it's a User Contributed Perl Documentation page. it's literally all about locale data examples for the English United States Computer (en-US-POSIX) locale. no cap, we're going through every single example. π
β¨ NAME β¨
DateTime::Locale::en_US_POSIX β locale data examples for the English United States Computer (en-US-POSIX) locale. π«Ά
πΈ DESCRIPTION πΈ
this pod file is packed with examples of the locale data available for the English United States Computer locale. it's giving reference-sheet energy, and every list below is included exactly. periodt. β¨
π¦ Days π¦
bestie, the day names are here in every width and every stand-alone flavor. Monday starts the week, which is iconic of her. π
Wide (format)
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Abbreviated (format)
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Narrow (format)
M
T
W
T
F
S
S
Wide (stand-alone)
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Abbreviated (stand-alone)
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Narrow (stand-alone)
M
T
W
T
F
S
S
π Months π
the month names said βwe have rangeβ and honestly they ate. wide, abbreviated, narrow, format, stand-alone β all of it is right here. π
Wide (format)
January
February
March
April
May
June
July
August
September
October
November
December
Abbreviated (format)
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Narrow (format)
J
F
M
A
M
J
J
A
S
O
N
D
Wide (stand-alone)
January
February
March
April
May
June
July
August
September
October
November
December
Abbreviated (stand-alone)
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Narrow (stand-alone)
J
F
M
A
M
J
J
A
S
O
N
D
π§ Quarters π§
quarter names, quarter abbreviations, and the tiny narrow numbers. all present, all accounted for. π₯
Wide (format)
1st quarter
2nd quarter
3rd quarter
4th quarter
Abbreviated (format)
Q1
Q2
Q3
Q4
Narrow (format)
1
2
3
4
Wide (stand-alone)
1st quarter
2nd quarter
3rd quarter
4th quarter
Abbreviated (stand-alone)
Q1
Q2
Q3
Q4
Narrow (stand-alone)
1
2
3
4
π Eras π
era names for when you need to be very literal about Before Christ and Anno Domini. the narrow ones are just out here being B and A. π
Wide (format)
Before Christ
Anno Domini
Abbreviated (format)
BC
AD
Narrow (format)
B
A
ποΈ Date Formats ποΈ
these are the date-format outputs for the three example timestamps. yes, the negative year is literally -10, not a typo. she's built different. π
Full
2008-02-05T18:30:30 = Tuesday, February 5, 2008
1995-12-22T09:05:02 = Friday, December 22, 1995
-0010-09-15T04:44:23 = Saturday, September 15, -10
Long
2008-02-05T18:30:30 = February 5, 2008
1995-12-22T09:05:02 = December 22, 1995
-0010-09-15T04:44:23 = September 15, -10
Medium
2008-02-05T18:30:30 = Feb 5, 2008
1995-12-22T09:05:02 = Dec 22, 1995
-0010-09-15T04:44:23 = Sep 15, -10
Short
2008-02-05T18:30:30 = 2/5/08
1995-12-22T09:05:02 = 12/22/95
-0010-09-15T04:44:23 = 9/15/-10
β° Time Formats β°
same three timestamps, but now it's clock o'clock. Full and Long include UTC; Medium and Short don't. iykyk. π°οΈ
Full
2008-02-05T18:30:30 = 6:30:30 PM UTC
1995-12-22T09:05:02 = 9:05:02 AM UTC
-0010-09-15T04:44:23 = 4:44:23 AM UTC
Long
2008-02-05T18:30:30 = 6:30:30 PM UTC
1995-12-22T09:05:02 = 9:05:02 AM UTC
-0010-09-15T04:44:23 = 4:44:23 AM UTC
Medium
2008-02-05T18:30:30 = 6:30:30 PM
1995-12-22T09:05:02 = 9:05:02 AM
-0010-09-15T04:44:23 = 4:44:23 AM
Short
2008-02-05T18:30:30 = 6:30 PM
1995-12-22T09:05:02 = 9:05 AM
-0010-09-15T04:44:23 = 4:44 AM
π Datetime Formats π
date plus time, combined, slaying across all four sizes. the Full and Long ones are giving βatβ energy, and Medium and Short are giving comma energy. π«Ά
Full
2008-02-05T18:30:30 = Tuesday, February 5, 2008 at 6:30:30 PM UTC
1995-12-22T09:05:02 = Friday, December 22, 1995 at 9:05:02 AM UTC
-0010-09-15T04:44:23 = Saturday, September 15, -10 at 4:44:23 AM UTC
Long
2008-02-05T18:30:30 = February 5, 2008 at 6:30:30 PM UTC
1995-12-22T09:05:02 = December 22, 1995 at 9:05:02 AM UTC
-0010-09-15T04:44:23 = September 15, -10 at 4:44:23 AM UTC
Medium
2008-02-05T18:30:30 = Feb 5, 2008, 6:30:30 PM
1995-12-22T09:05:02 = Dec 22, 1995, 9:05:02 AM
-0010-09-15T04:44:23 = Sep 15, -10, 4:44:23 AM
Short
2008-02-05T18:30:30 = 2/5/08, 6:30 PM
1995-12-22T09:05:02 = 12/22/95, 9:05 AM
-0010-09-15T04:44:23 = 9/15/-10, 4:44 AM
π Available Formats π
okay this is the big one β every available format, with the same three timestamps. no skipping. each bullet shows the format label, its pattern in parentheses, and the exact outputs. let's go. π₯
Bh(h B) β theh Bmoment:2008-02-05T18:30:30 = 6 B,1995-12-22T09:05:02 = 9 B,-0010-09-15T04:44:23 = 4 BBhm(h:mm B) β hour and minute plusB:2008-02-05T18:30:30 = 6:30 B,1995-12-22T09:05:02 = 9:05 B,-0010-09-15T04:44:23 = 4:44 BBhms(h:mm:ss B) β hour, minute, second, andB:2008-02-05T18:30:30 = 6:30:30 B,1995-12-22T09:05:02 = 9:05:02 B,-0010-09-15T04:44:23 = 4:44:23 BE(ccc) β just the abbreviated day name:2008-02-05T18:30:30 = Tue,1995-12-22T09:05:02 = Fri,-0010-09-15T04:44:23 = SatEBhm(E h:mm B) β day plush:mm B:2008-02-05T18:30:30 = Tue 6:30 B,1995-12-22T09:05:02 = Fri 9:05 B,-0010-09-15T04:44:23 = Sat 4:44 BEBhms(E h:mm:ss B) β day plush:mm:ss B:2008-02-05T18:30:30 = Tue 6:30:30 B,1995-12-22T09:05:02 = Fri 9:05:02 B,-0010-09-15T04:44:23 = Sat 4:44:23 BEHm(E HH:mm) β day plus 24-hour hour and minute:2008-02-05T18:30:30 = Tue 18:30,1995-12-22T09:05:02 = Fri 09:05,-0010-09-15T04:44:23 = Sat 04:44EHms(E HH:mm:ss) β day plus 24-hour hour, minute, second:2008-02-05T18:30:30 = Tue 18:30:30,1995-12-22T09:05:02 = Fri 09:05:02,-0010-09-15T04:44:23 = Sat 04:44:23Ed(d E) β day number then abbreviated day:2008-02-05T18:30:30 = 5 Tue,1995-12-22T09:05:02 = 22 Fri,-0010-09-15T04:44:23 = 15 SatEhm(E h:mm a) β day plus 12-hour time withAM/PM:2008-02-05T18:30:30 = Tue 6:30 PM,1995-12-22T09:05:02 = Fri 9:05 AM,-0010-09-15T04:44:23 = Sat 4:44 AMEhms(E h:mm:ss a) β day plus 12-hour time with seconds:2008-02-05T18:30:30 = Tue 6:30:30 PM,1995-12-22T09:05:02 = Fri 9:05:02 AM,-0010-09-15T04:44:23 = Sat 4:44:23 AMGy(y G) β year plus era:2008-02-05T18:30:30 = 2008 AD,1995-12-22T09:05:02 = 1995 AD,-0010-09-15T04:44:23 = -10 BCGyMMM(MMM y G) β abbreviated month, year, era:2008-02-05T18:30:30 = Feb 2008 AD,1995-12-22T09:05:02 = Dec 1995 AD,-0010-09-15T04:44:23 = Sep -10 BCGyMMMEd(E, MMM d, y G) β day, abbreviated month, day number, year, era:2008-02-05T18:30:30 = Tue, Feb 5, 2008 AD,1995-12-22T09:05:02 = Fri, Dec 22, 1995 AD,-0010-09-15T04:44:23 = Sat, Sep 15, -10 BCGyMMMd(MMM d, y G) β abbreviated month, day number, year, era:2008-02-05T18:30:30 = Feb 5, 2008 AD,1995-12-22T09:05:02 = Dec 22, 1995 AD,-0010-09-15T04:44:23 = Sep 15, -10 BCH(HH) β 24-hour hour only:2008-02-05T18:30:30 = 18,1995-12-22T09:05:02 = 09,-0010-09-15T04:44:23 = 04Hm(HH:mm) β 24-hour hour and minute:2008-02-05T18:30:30 = 18:30,1995-12-22T09:05:02 = 09:05,-0010-09-15T04:44:23 = 04:44Hms(HH:mm:ss) β 24-hour hour, minute, second:2008-02-05T18:30:30 = 18:30:30,1995-12-22T09:05:02 = 09:05:02,-0010-09-15T04:44:23 = 04:44:23Hmsv(HH:mm:ss v) β 24-hour time with seconds plusv:2008-02-05T18:30:30 = 18:30:30 UTC,1995-12-22T09:05:02 = 09:05:02 UTC,-0010-09-15T04:44:23 = 04:44:23 UTCHmv(HH:mm v) β 24-hour hour and minute plusv:2008-02-05T18:30:30 = 18:30 UTC,1995-12-22T09:05:02 = 09:05 UTC,-0010-09-15T04:44:23 = 04:44 UTCM(L) β month number, stand-alone energy:2008-02-05T18:30:30 = 2,1995-12-22T09:05:02 = 12,-0010-09-15T04:44:23 = 9MEd(E, M/d) β day plus month/day:2008-02-05T18:30:30 = Tue, 2/5,1995-12-22T09:05:02 = Fri, 12/22,-0010-09-15T04:44:23 = Sat, 9/15MMM(LLL) β abbreviated month, stand-alone:2008-02-05T18:30:30 = Feb,1995-12-22T09:05:02 = Dec,-0010-09-15T04:44:23 = SepMMMEd(E, MMM d) β day, abbreviated month, day number:2008-02-05T18:30:30 = Tue, Feb 5,1995-12-22T09:05:02 = Fri, Dec 22,-0010-09-15T04:44:23 = Sat, Sep 15MMMMW-count-one('week' W 'of' MMMM) β week-of-month wording, count-one style:2008-02-05T18:30:30 = week 1 of February,1995-12-22T09:05:02 = week 3 of December,-0010-09-15T04:44:23 = week 2 of SeptemberMMMMW-count-other('week' W 'of' MMMM) β week-of-month wording, count-other style:2008-02-05T18:30:30 = week 1 of February,1995-12-22T09:05:02 = week 3 of December,-0010-09-15T04:44:23 = week 2 of SeptemberMMMMd(MMMM d) β wide month and day number:2008-02-05T18:30:30 = February 5,1995-12-22T09:05:02 = December 22,-0010-09-15T04:44:23 = September 15MMMd(MMM d) β abbreviated month and day number:2008-02-05T18:30:30 = Feb 5,1995-12-22T09:05:02 = Dec 22,-0010-09-15T04:44:23 = Sep 15Md(M/d) β month/day:2008-02-05T18:30:30 = 2/5,1995-12-22T09:05:02 = 12/22,-0010-09-15T04:44:23 = 9/15d(d) β day number only:2008-02-05T18:30:30 = 5,1995-12-22T09:05:02 = 22,-0010-09-15T04:44:23 = 15h(h a) β 12-hour hour plusAM/PM:2008-02-05T18:30:30 = 6 PM,1995-12-22T09:05:02 = 9 AM,-0010-09-15T04:44:23 = 4 AMhm(h:mm a) β 12-hour hour and minute:2008-02-05T18:30:30 = 6:30 PM,1995-12-22T09:05:02 = 9:05 AM,-0010-09-15T04:44:23 = 4:44 AMhms(h:mm:ss a) β 12-hour hour, minute, second:2008-02-05T18:30:30 = 6:30:30 PM,1995-12-22T09:05:02 = 9:05:02 AM,-0010-09-15T04:44:23 = 4:44:23 AMhmsv(h:mm:ss a v) β 12-hour time with seconds plusv:2008-02-05T18:30:30 = 6:30:30 PM UTC,1995-12-22T09:05:02 = 9:05:02 AM UTC,-0010-09-15T04:44:23 = 4:44:23 AM UTChmv(h:mm a v) β 12-hour hour and minute plusv:2008-02-05T18:30:30 = 6:30 PM UTC,1995-12-22T09:05:02 = 9:05 AM UTC,-0010-09-15T04:44:23 = 4:44 AM UTCms(mm:ss) β minute and second:2008-02-05T18:30:30 = 30:30,1995-12-22T09:05:02 = 05:02,-0010-09-15T04:44:23 = 44:23y(y) β year only:2008-02-05T18:30:30 = 2008,1995-12-22T09:05:02 = 1995,-0010-09-15T04:44:23 = -10yM(M/y) β month/year:2008-02-05T18:30:30 = 2/2008,1995-12-22T09:05:02 = 12/1995,-0010-09-15T04:44:23 = 9/-10yMEd(E, M/d/y) β day plus month/day/year:2008-02-05T18:30:30 = Tue, 2/5/2008,1995-12-22T09:05:02 = Fri, 12/22/1995,-0010-09-15T04:44:23 = Sat, 9/15/-10yMMM(MMM y) β abbreviated month and year:2008-02-05T18:30:30 = Feb 2008,1995-12-22T09:05:02 = Dec 1995,-0010-09-15T04:44:23 = Sep -10yMMMEd(E, MMM d, y) β day, abbreviated month, day number, year:2008-02-05T18:30:30 = Tue, Feb 5, 2008,1995-12-22T09:05:02 = Fri, Dec 22, 1995,-0010-09-15T04:44:23 = Sat, Sep 15, -10yMMMM(MMMM y) β wide month and year:2008-02-05T18:30:30 = February 2008,1995-12-22T09:05:02 = December 1995,-0010-09-15T04:44:23 = September -10yMMMd(MMM d, y) β abbreviated month, day number, year:2008-02-05T18:30:30 = Feb 5, 2008,1995-12-22T09:05:02 = Dec 22, 1995,-0010-09-15T04:44:23 = Sep 15, -10yMd(M/d/y) β month/day/year:2008-02-05T18:30:30 = 2/5/2008,1995-12-22T09:05:02 = 12/22/1995,-0010-09-15T04:44:23 = 9/15/-10yQQQ(QQQ y) β abbreviated quarter and year:2008-02-05T18:30:30 = Q1 2008,1995-12-22T09:05:02 = Q4 1995,-0010-09-15T04:44:23 = Q3 -10yQQQQ(QQQQ y) β wide quarter and year:2008-02-05T18:30:30 = 1st quarter 2008,1995-12-22T09:05:02 = 4th quarter 1995,-0010-09-15T04:44:23 = 3rd quarter -10yw-count-oneβ the pattern is'week' w 'of' Yβ literally the word "week", then the week number, then "of", then the year. It's giving calendar-core ποΈ
yw-count-one ('week' w 'of' Y)
2008-02-05T18:30:30 = week 6 of 2008
1995-12-22T09:05:02 = week 51 of 1995
-0010-09-15T04:44:23 = week 37 of -10
yw-count-otherβ same pattern,'week' w 'of' Y, for the "other" plural category. Yeah bestie, the output is identical toyw-count-onehere β that's just how it is, no cap π
yw-count-other ('week' w 'of' Y)
2008-02-05T18:30:30 = week 6 of 2008
1995-12-22T09:05:02 = week 51 of 1995
-0010-09-15T04:44:23 = week 37 of -10
π Miscellaneous π
The little leftover vibe-check settings, okay?
- Prefers 24 hour time? β
Noπ (clock is giving 12-hour main character energy) - Local first day of the week β
7 (Sunday)πΈ so Sunday is the opening act, periodt
β¨ Strftime Patterns β¨
These are the big three β the classic strftime-style formats, but localized how your locale likes it. Icons fr π
β %c (%a %d %b %Y %r %Z) β date time format
The whole package. Date AND time AND timezone, all in one flex.
2008-02-05T18:30:30 = Tue 05 Feb 2008 06:30:30 PM UTC
1995-12-22T09:05:02 = Fri 22 Dec 1995 09:05:02 AM UTC
-0010-09-15T04:44:23 = Sat 15 Sep -10 04:44:23 AM UTC
π %x (%m/%d/%Y) β date format
Just the date, no time, no drama.
2008-02-05T18:30:30 = 02/05/2008
1995-12-22T09:05:02 = 12/22/1995
-0010-09-15T04:44:23 = 09/15/-10
π¦ %X (%r) β time format
Just the time. Clock only. Slay.
2008-02-05T18:30:30 = 06:30:30 PM
1995-12-22T09:05:02 = 09:05:02 AM
-0010-09-15T04:44:23 = 04:44:23 AM
π«Ά SUPPORT π«Ά
See DateTime::Locale. That's the whole thing β go read it, it's the parent lore iykyk π
ok that's the whole page bestie, you ate π one last thing though β this beauty is fromperl v5.32.1, dated2021-08-09, and it lives under the nameDateTim...US_POSIX(3)(yes the name is genuinely truncated like that, iconic of it honestly). go forth and format your dates, you absolute icon πβ¨
π¦ where this page comes from
- centos-stream 9: perl-DateTime-Locale 1.31-4.el9 Β· (GPL+ or Artistic) and Unicode
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms