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
- opensuse-leap 16.0: perl-DateTime-Locale 1.440000-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms