DateTim...ale::km(3)

πŸŽ€ DateTime::Locale::km πŸ’…

okay so bestie, this page comes to you straight out of the User Contributed Perl Documentation section (yes, that's the vibe), and it's literally just a big ol' show-and-tell of every scrap of locale data that ships for the Khmer (km) locale. Like, no actual functions, no arguments, no exit codes β€” just look at all these gorgeous examples energy. πŸ¦‹

Think of it as the test-data flex shelf: every day name, month name, quarter, era, date format, time format, and every single named format, each one demoed on three extremely specific timestamps. It's giving "show, don't tell" and honestly? Ate. ✨


🌸 NAME 🌸

DateTime::Locale::km β€” locale data examples for the Khmer (km) locale. Periodt. πŸ’–


✨ DESCRIPTION ✨

This pod file is literally a gallery of examples of the locale data available for the Khmer locale. Everything below is the actual data, ready for you to ogle. 🫢


🌈 Days

Wide (format)

αž…αž“αž‘
αž’αž„αž‚αžΆαžš
αž–αž’
αž–αžšαž αžŸαž”αžαŸ
αžŸαž€αžš
αžŸαŸ…αžšαŸ
αž’αžΆαž‘αžαž™

Abbreviated (format)

αž…αž“αž‘
αž’αž„αž‚αžΆαžš
αž–αž’
αž–αžšαž 
αžŸαž€αžš
αžŸαŸ…αžšαŸ
αž’αžΆαž‘αžαž™

Narrow (format)

αž…
ធ
αž–
αž–
ស
ស
ធ

Wide (stand-alone)

αž…αž“αž‘
αž’αž„αž‚αžΆαžš
αž–αž’
αž–αžšαž αžŸαž”αžαŸ
αžŸαž€αžš
αžŸαŸ…αžšαŸ
αž’αžΆαž‘αžαž™

Abbreviated (stand-alone)

αž…αž“αž‘
αž’αž„αž‚αžΆαžš
αž–αž’
αž–αžšαž 
αžŸαž€αžš
αžŸαŸ…αžšαŸ
αž’αžΆαž‘αžαž™

Narrow (stand-alone)

αž…
ធ
αž–
αž–
ស
ស
ធ

🌸 Months

Wide (format)

αž˜αž€αžšαžΆ
αž€αž˜αž—αŸˆ
αž˜αž“αžΆ
មេសអ
αž§αžŸαž—αžΆ
αž˜αžαž“αžΆ
αž€αž€αž€αžŠαžΆ
សហអ
αž€αž‰αž‰αžΆ
αžαž›αžΆ
αžœαž…αž†αž€αžΆ
αž’αž“αžΌ

Abbreviated (format)

αž˜αž€αžšαžΆ
αž€αž˜αž—αŸˆ
αž˜αž“αžΆ
មេសអ
αž§αžŸαž—αžΆ
αž˜αžαž“αžΆ
αž€αž€αž€αžŠαžΆ
សហអ
αž€αž‰αž‰αžΆ
αžαž›αžΆ
αžœαž…αž†αž€αžΆ
αž’αž“αžΌ

Narrow (format)

ម
αž€
ម
ម
ឧ
ម
αž€
ស
αž€
ត
វ
αž’

Wide (stand-alone)

αž˜αž€αžšαžΆ
αž€αž˜αž—αŸˆ
αž˜αž“αžΆ
មេសអ
αž§αžŸαž—αžΆ
αž˜αžαž“αžΆ
αž€αž€αž€αžŠαžΆ
សហអ
αž€αž‰αž‰αžΆ
αžαž›αžΆ
αžœαž…αž†αž€αžΆ
αž’αž“αžΌ

Abbreviated (stand-alone)

αž˜αž€αžšαžΆ
αž€αž˜αž—αŸˆ
αž˜αž“αžΆ
មេសអ
αž§αžŸαž—αžΆ
αž˜αžαž“αžΆ
αž€αž€αž€αžŠαžΆ
សហអ
αž€αž‰αž‰αžΆ
αžαž›αžΆ
αžœαž…αž†αž€αžΆ
αž’αž“αžΌ

Narrow (stand-alone)

ម
αž€
ម
ម
ឧ
ម
αž€
ស
αž€
ត
វ
αž’

πŸ¦‹ Quarters

Wide (format)

αžαžšαž˜αžΆαžŸαž‘αžΈ 1
αžαžšαž˜αžΆαžŸαž‘αžΈ 2
αžαžšαž˜αžΆαžŸαž‘αžΈ 3
αžαžšαž˜αžΆαžŸαž‘αžΈ 4

Abbreviated (format)

αžαžšαž˜αžΆαžŸαž‘αžΈ 1
αžαžšαž˜αžΆαžŸαž‘αžΈ 2
αžαžšαž˜αžΆαžŸαž‘αžΈ 3
αžαžšαž˜αžΆαžŸαž‘αžΈ 4

Narrow (format)

1
2
3
4

Wide (stand-alone)

αžαžšαž˜αžΆαžŸαž‘αžΈ 1
αžαžšαž˜αžΆαžŸαž‘αžΈ 2
αžαžšαž˜αžΆαžŸαž‘αžΈ 3
αžαžšαž˜αžΆαžŸαž‘αžΈ 4

Abbreviated (stand-alone)

αžαžšαž˜αžΆαžŸαž‘αžΈ 1
αžαžšαž˜αžΆαžŸαž‘αžΈ 2
αžαžšαž˜αžΆαžŸαž‘αžΈ 3
αžαžšαž˜αžΆαžŸαž‘αžΈ 4

Narrow (stand-alone)

1
2
3
4

πŸ’œ Eras

Wide (format)

αž˜αž“αž‚αžšαžŸαžαžŸαž€αžšαžΆαž‡
αž‚αžšαžŸαžαžŸαž€αžšαžΆαž‡

Abbreviated (format)

αž˜αž“ αž‚.ស.
αž‚.ស.

Narrow (format)

αž˜αž“ αž‚.ស.
αž‚.ស.

πŸŽ€ Date Formats

Each one gets demoed on the same three timestamps so you can clock the difference at a glance. πŸ‘‘

Full

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5 αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = αžŸαž€αžš 22 αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15 αž€αž‰αž‰αžΆ -10

Long

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = 22 αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ -10

Medium

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = 22 αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ -10

Short

2008-02-05T18:30:30 = 5/2/08
1995-12-22T09:05:02 = 22/12/95
-0010-09-15T04:44:23 = 15/9/-10

⭐ Time Formats

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 + time, glued together, the iconic combo meal. πŸ“

Full

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5 αž€αž˜αž—αŸˆ 2008, 6:30:30 PM UTC
1995-12-22T09:05:02 = αžŸαž€αžš 22 αž’αž“αžΌ 1995, 9:05:02 AM UTC
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15 αž€αž‰αž‰αžΆ -10, 4:44:23 AM UTC

Long

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ 2008, 6:30:30 PM UTC
1995-12-22T09:05:02 = 22 αž’αž“αžΌ 1995, 9:05:02 AM UTC
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ -10, 4:44:23 AM UTC

Medium

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ 2008, 6:30:30 PM
1995-12-22T09:05:02 = 22 αž’αž“αžΌ 1995, 9:05:02 AM
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ -10, 4:44:23 AM

Short

2008-02-05T18:30:30 = 5/2/08, 6:30 PM
1995-12-22T09:05:02 = 22/12/95, 9:05 AM
-0010-09-15T04:44:23 = 15/9/-10, 4:44 AM

πŸ‘‘ Available Formats

okay this is the motherlode πŸ’€ β€” every single named format the locale offers, with its code name, the pattern it maps to in parens, and the same three sample timestamps. No skipping, we're doing all of them, because that's the whole point of this file. Let's go. πŸ”₯

Bh (h B)

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)

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)

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)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš
1995-12-22T09:05:02 = αžŸαž€αžš
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ

EBhm (E h:mm 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

EBhms (E h:mm:ss 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

EHm (E HH:mm)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 18:30
1995-12-22T09:05:02 = αžŸαž€αžš 09:05
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 04:44

EHms (E HH:mm:ss)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 18:30:30
1995-12-22T09:05:02 = αžŸαž€αžš 09:05:02
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 04:44:23

Ed (d E)

2008-02-05T18:30:30 = 5 αž’αž„αž‚αžΆαžš
1995-12-22T09:05:02 = 22 αžŸαž€αžš
-0010-09-15T04:44:23 = 15 αžŸαŸ…αžšαŸ

Ehm (E h:mm a)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 6:30 PM
1995-12-22T09:05:02 = αžŸαž€αžš 9:05 AM
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 4:44 AM

Ehms (E h:mm:ss a)

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

Gy (y G)

2008-02-05T18:30:30 = 2008 αž‚.ស.
1995-12-22T09:05:02 = 1995 αž‚.ស.
-0010-09-15T04:44:23 = -10 αž˜αž“ αž‚.ស.

GyMMM (MMM y G)

2008-02-05T18:30:30 = αž€αž˜αž—αŸˆ 2008 αž‚.ស.
1995-12-22T09:05:02 = αž’αž“αžΌ 1995 αž‚.ស.
-0010-09-15T04:44:23 = αž€αž‰αž‰αžΆ -10 αž˜αž“ αž‚.ស.

GyMMMEd (E d MMM y G)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5 αž€αž˜αž—αŸˆ 2008 αž‚.ស.
1995-12-22T09:05:02 = αžŸαž€αžš 22 αž’αž“αžΌ 1995 αž‚.ស.
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15 αž€αž‰αž‰αžΆ -10 αž˜αž“ αž‚.ស.

GyMMMd (d MMM y G)

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ 2008 αž‚.ស.
1995-12-22T09:05:02 = 22 αž’αž“αžΌ 1995 αž‚.ស.
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ -10 αž˜αž“ αž‚.ស.

GyMd (GGGGG y-MM-dd)

2008-02-05T18:30:30 = αž‚.ស. 2008-02-05
1995-12-22T09:05:02 = αž‚.ស. 1995-12-22
-0010-09-15T04:44:23 = αž˜αž“ αž‚.ស. -10-09-15

H (HH)

2008-02-05T18:30:30 = 18
1995-12-22T09:05:02 = 09
-0010-09-15T04:44:23 = 04

Hm (HH:mm)

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)

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)

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)

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)

2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9

MEd (E d/M)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5/2
1995-12-22T09:05:02 = αžŸαž€αžš 22/12
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15/9

MMM (LLL)

2008-02-05T18:30:30 = αž€αž˜αž—αŸˆ
1995-12-22T09:05:02 = αž’αž“αžΌ
-0010-09-15T04:44:23 = αž€αž‰αž‰αžΆ

MMMEd (E d MMM)

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5 αž€αž˜αž—αŸˆ
1995-12-22T09:05:02 = αžŸαž€αžš 22 αž’αž“αžΌ
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15 αž€αž‰αž‰αžΆ

MMMMW-count-other (αžŸαž”αžαžΆαž αž‘αžΈ W αž“αŸƒαžαŸ‚ MMMM)

2008-02-05T18:30:30 = αžŸαž”αžαžΆαž αž‘αžΈ 1 αž“αŸƒαžαŸ‚ αž€αž˜αž—αŸˆ
1995-12-22T09:05:02 = αžŸαž”αžαžΆαž αž‘αžΈ 3 αž“αŸƒαžαŸ‚ αž’αž“αžΌ
-0010-09-15T04:44:23 = αžŸαž”αžαžΆαž αž‘αžΈ 2 αž“αŸƒαžαŸ‚ αž€αž‰αž‰αžΆ

MMMMd (d MMMM)

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ
1995-12-22T09:05:02 = 22 αž’αž“αžΌ
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ

MMMd (d MMM)

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ
1995-12-22T09:05:02 = 22 αž’αž“αžΌ
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ

Md (d/M)

2008-02-05T18:30:30 = 5/2
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/9

d (d)

2008-02-05T18:30:30 = 5
1995-12-22T09:05:02 = 22
-0010-09-15T04:44:23 = 15

h (h a)

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)

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)

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)

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)

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)

and bestie, that's exactly where this part cuts off 😭 β€” the ms examples roll over into part 2. Don't worry though, the rest is coming and it's gonna be just as extra. πŸ’–


no cap: we are so not done yet. Part 2 has the rest of the format gallery, and you're gonna want to see it. 🧚

...aaand the last of the time patterns 🌸

okay so we're mid-list, sorry, the page just keeps going (iconic behavior honestly). here's the tail end of the time formats β€” pattern name, then the rendered output for those same three sample timestamps:

2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23

πŸ¦‹ the date patterns (yes, all of them)

bestie there are SO many and I'm listing every single one, no skipping, that's the whole point. each heading is the pattern name with the actual pattern shown in the parens, and then the three sample datetimes get rendered. watch the negative year, it's serving -10 the entire time 😭

y (y)

just the year. minimal. clean. main character.

2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10

yM (M/y)

month first, then year, with a slash. it's giving "month girl summer" idk.

2008-02-05T18:30:30 = 2/2008
1995-12-22T09:05:02 = 12/1995
-0010-09-15T04:44:23 = 9/-10

yMEd (E d/M/y)

weekday + day/month/year. full little package deal πŸŽ€

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5/2/2008
1995-12-22T09:05:02 = αžŸαž€αžš 22/12/1995
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15/9/-10

yMMM (MMM y)

short month name then year β€” and yes, the month names are absolutely gorgeous here, look at them πŸ˜­πŸ’–

2008-02-05T18:30:30 = αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = αž€αž‰αž‰αžΆ -10

yMMMEd (E d MMM y)

weekday, day, short month, year. the full deluxe combo, no notes.

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš 5 αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = αžŸαž€αžš 22 αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ 15 αž€αž‰αž‰αžΆ -10

yMMMM (MMMM y)

wide month name + year. lowkey identical to yMMM output in this locale, and that's just how it is, don't come for me πŸ’…

2008-02-05T18:30:30 = αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = αž€αž‰αž‰αžΆ -10

yMMMd (d MMM y)

day, short month, year β€” the weekday stepped out, it's having a moment off.

2008-02-05T18:30:30 = 5 αž€αž˜αž—αŸˆ 2008
1995-12-22T09:05:02 = 22 αž’αž“αžΌ 1995
-0010-09-15T04:44:23 = 15 αž€αž‰αž‰αžΆ -10

yMd (d/M/y)

pure numbers, slashes between. day/month/year supremacy, sorry to the US girlies 🫢

2008-02-05T18:30:30 = 5/2/2008
1995-12-22T09:05:02 = 22/12/1995
-0010-09-15T04:44:23 = 15/9/-10

yQQQ (QQQ y)

the short quarter name + year. quarterly reporting energy, very girlboss.

2008-02-05T18:30:30 = αžαžšαž˜αžΆαžŸαž‘αžΈ 1 2008
1995-12-22T09:05:02 = αžαžšαž˜αžΆαžŸαž‘αžΈ 4 1995
-0010-09-15T04:44:23 = αžαžšαž˜αžΆαžŸαž‘αžΈ 3 -10

yQQQQ (QQQQ y)

the wide quarter name + year. same output as the short one here, and yes I checked, it's literally the same strings ⭐

2008-02-05T18:30:30 = αžαžšαž˜αžΆαžŸαž‘αžΈ 1 2008
1995-12-22T09:05:02 = αžαžšαž˜αžΆαžŸαž‘αžΈ 4 1995
-0010-09-15T04:44:23 = αžαžšαž˜αžΆαžŸαž‘αžΈ 3 -10

yw-count-other (αžŸαž”αžαžΆαž αž‘αžΈ w αž“αŸƒαž†αž“αžΆαŸ† Y)

week-of-year, and the pattern name literally has -other in it because that's the plural category this one lands in. week 6, week 51, week 37 β€” wild how fast a year goes fr fr.

2008-02-05T18:30:30 = αžŸαž”αžαžΆαž αž‘αžΈ 6 αž“αŸƒαž†αž“αžΆαŸ† 2008
1995-12-22T09:05:02 = αžŸαž”αžαžΆαž αž‘αžΈ 51 αž“αŸƒαž†αž“αžΆαŸ† 1995
-0010-09-15T04:44:23 = αžŸαž”αžαžΆαž αž‘αžΈ 37 αž“αŸƒαž†αž“αžΆαŸ† -10

✨ Miscellaneous ✨

the little extras that didn't fit anywhere else. tiny but mighty 🧚

  • Prefers 24 hour time?

No

  • Local first day of the week

1 (αž…αž“αž‘)


πŸ”₯ Strftime Patterns πŸ”₯

okay now the strftime-flavored ones, which come with their own format string spelled out in parens before the dash. same three datetimes, same energy.

%c (%a %b %e %H:%M:%S %Y) β€” date time format

the whole date and the whole time, one pattern, absolutely carrying the team πŸ‘‘

2008-02-05T18:30:30 = αž’αž„αž‚αžΆαžš αž€αž˜αž—αŸˆ  5 18:30:30 2008
1995-12-22T09:05:02 = αžŸαž€αžš αž’αž“αžΌ 22 09:05:02 1995
-0010-09-15T04:44:23 = αžŸαŸ…αžšαŸ αž€αž‰αž‰αžΆ 15 04:44:23 -10
ngl that first line has a double space in it between the month and the 5 β€” I left it exactly as-is, don't @ me, it's canon πŸ’€

%x (%m/%d/%y) β€” date format

month/day/year, zero-padded, and the year is the 2-digit %y so welcome to 08, 95, and 10. also bestie notice this one is month-first even though the localized date pattern above wasn't β€” that's just what it says, I don't make the rules πŸ™ˆ

2008-02-05T18:30:30 = 02/05/08
1995-12-22T09:05:02 = 12/22/95
-0010-09-15T04:44:23 = 09/15/10

%X (%H:%M:%S) β€” time format

hours, minutes, seconds, zero-padded, 24-hour style, slaying.

2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 09:05:02
-0010-09-15T04:44:23 = 04:44:23

πŸ’œ SUPPORT πŸ’œ

See DateTime::Locale.

that's it, that's the support section β€” short and sweet, she knows where to send you 🫢


okay bye bestie, drink some water, go format a date with confidence ✨ this was perl v5.42.0, dated 2024-12-12, and yes I'm that girl who memorized the whole locale file πŸ’…πŸŽ€

πŸ“¦ where this page comes from