DateTim...US_POSIX(3)

πŸ“¦ version 1.31, in centos-stream 9

πŸŽ€ 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) β€” the h B moment: 2008-02-05T18:30:30 = 6 B, 1995-12-22T09:05:02 = 9 B, -0010-09-15T04:44:23 = 4 B
  • Bhm (h:mm B) β€” hour and minute plus B: 2008-02-05T18:30:30 = 6:30 B, 1995-12-22T09:05:02 = 9:05 B, -0010-09-15T04:44:23 = 4:44 B
  • Bhms (h:mm:ss B) β€” hour, minute, second, and B: 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 B
  • E (ccc) β€” just the abbreviated day name: 2008-02-05T18:30:30 = Tue, 1995-12-22T09:05:02 = Fri, -0010-09-15T04:44:23 = Sat
  • EBhm (E h:mm B) β€” day plus h: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 B
  • EBhms (E h:mm:ss B) β€” day plus h: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 B
  • EHm (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:44
  • EHms (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:23
  • Ed (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 Sat
  • Ehm (E h:mm a) β€” day plus 12-hour time with AM/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 AM
  • Ehms (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 AM
  • Gy (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 BC
  • GyMMM (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 BC
  • GyMMMEd (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 BC
  • GyMMMd (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 BC
  • H (HH) β€” 24-hour hour only: 2008-02-05T18:30:30 = 18, 1995-12-22T09:05:02 = 09, -0010-09-15T04:44:23 = 04
  • Hm (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:44
  • Hms (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:23
  • Hmsv (HH:mm:ss v) β€” 24-hour time with seconds plus v: 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 UTC
  • Hmv (HH:mm v) β€” 24-hour hour and minute plus v: 2008-02-05T18:30:30 = 18:30 UTC, 1995-12-22T09:05:02 = 09:05 UTC, -0010-09-15T04:44:23 = 04:44 UTC
  • M (L) β€” month number, stand-alone energy: 2008-02-05T18:30:30 = 2, 1995-12-22T09:05:02 = 12, -0010-09-15T04:44:23 = 9
  • MEd (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/15
  • MMM (LLL) β€” abbreviated month, stand-alone: 2008-02-05T18:30:30 = Feb, 1995-12-22T09:05:02 = Dec, -0010-09-15T04:44:23 = Sep
  • MMMEd (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 15
  • MMMMW-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 September
  • MMMMW-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 September
  • MMMMd (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 15
  • MMMd (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 15
  • Md (M/d) β€” month/day: 2008-02-05T18:30:30 = 2/5, 1995-12-22T09:05:02 = 12/22, -0010-09-15T04:44:23 = 9/15
  • d (d) β€” day number only: 2008-02-05T18:30:30 = 5, 1995-12-22T09:05:02 = 22, -0010-09-15T04:44:23 = 15
  • h (h a) β€” 12-hour hour plus AM/PM: 2008-02-05T18:30:30 = 6 PM, 1995-12-22T09:05:02 = 9 AM, -0010-09-15T04:44:23 = 4 AM
  • hm (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 AM
  • hms (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 AM
  • hmsv (h:mm:ss a v) β€” 12-hour time with seconds plus v: 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
  • hmv (h:mm a v) β€” 12-hour hour and minute plus v: 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 UTC
  • ms (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:23
  • y (y) β€” year only: 2008-02-05T18:30:30 = 2008, 1995-12-22T09:05:02 = 1995, -0010-09-15T04:44:23 = -10
  • yM (M/y) β€” month/year: 2008-02-05T18:30:30 = 2/2008, 1995-12-22T09:05:02 = 12/1995, -0010-09-15T04:44:23 = 9/-10
  • yMEd (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/-10
  • yMMM (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 -10
  • yMMMEd (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, -10
  • yMMMM (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 -10
  • yMMMd (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, -10
  • yMd (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/-10
  • yQQQ (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 -10
  • yQQQQ (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 -10
  • yw-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 to yw-count-one here β€” 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 from perl v5.32.1, dated 2021-08-09, and it lives under the name DateTim...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