DateTim...e::km_KH(3)
πΈ NAME πΈ
DateTime::Locale::km_KH β okay so this is the locale data examples page for the Khmer Cambodia (km-KH) locale, bestie. It ships as a Perl pod file (the manual header up top literally reads DateTim...e::km_KH(3) / User Contributed Perl Documentation / DateTim...e::km_KH(3) β that truncation is just the terminal being extra, the real module name is the whole thing).
β¨ DESCRIPTION β¨
This pod file is basically a show-and-tell π β it contains examples of the locale data that's available for the Khmer Cambodia locale. Every string, every pattern, every formatted timestamp you're about to see is the actual data, so don't come for me if your eyes glaze over at the Khmer script. It's giving reference material and honestly? Iconic.
ποΈ Days
Seven of them, in order, and every one shows up in both format and stand-alone flavours because context matters. π
Wide (format)
α
αα
α’αααΆα
αα
ααα αααα
ααα
αα
αα
α’αΆααα
Abbreviated (format)
α
αα
α’αααΆα
αα
ααα
ααα
αα
αα
α’αΆααα
Narrow (format)
α
α’
α
α
α
α
α’
Wide (stand-alone)
α
αα
α’αααΆα
αα
ααα αααα
ααα
αα
αα
α’αΆααα
Abbreviated (stand-alone)
α
αα
α’αααΆα
αα
ααα
ααα
αα
αα
α’αΆααα
Narrow (stand-alone)
α
α’
α
α
α
α
α’
π Months
Twelve of these, and yes the narrow ones are literally single characters β main character energy, minimal effort, maximum slay. π
Wide (format)
ααααΆ
αααα
αααΆ
ααααΆ
α§αααΆ
ααααΆ
αααααΆ
αα αΆ
ααααΆ
αααΆ
αα
αααΆ
αααΌ
Abbreviated (format)
ααααΆ
αααα
αααΆ
ααααΆ
α§αααΆ
ααααΆ
αααααΆ
αα αΆ
ααααΆ
αααΆ
αα
αααΆ
αααΌ
Narrow (format)
α
α
α
α
α§
α
α
α
α
α
α
α
Wide (stand-alone)
ααααΆ
αααα
αααΆ
ααααΆ
α§αααΆ
ααααΆ
αααααΆ
αα αΆ
ααααΆ
αααΆ
αα
αααΆ
αααΌ
Abbreviated (stand-alone)
ααααΆ
αααα
αααΆ
ααααΆ
α§αααΆ
ααααΆ
αααααΆ
αα αΆ
ααααΆ
αααΆ
αα
αααΆ
αααΌ
Narrow (stand-alone)
α
α
α
α
α§
α
α
α
α
α
α
α
π¦ Quarters
Four of them. The wide/abbreviated versions are giving full sentences, the narrow ones are just digits because sometimes you gotta keep it lowkey. π
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
Only two of these, ngl, and the narrow one is out here matching the abbreviated one exactly. Consistent queen. β¨
Wide (format)
ααααααααααΆα
ααααααααΆα
Abbreviated (format)
αα α.α.
α.α.
Narrow (format)
αα α.α.
α.α.
π Date Formats
Four widths β Full, Long, Medium and Short β each shown against the same three timestamps so you can clock exactly how they differ. π«Ά
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
Same four widths, but now we're clocking hours instead of dates. Notice the Full and Long ones are out here flexing that UTC suffix. π
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
Where the date girlies and the time girlies finally collab. π€ Full, Long, Medium, Short β all four, with the comma doing its little bridge thing.
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 big one, bestie β every named format code the locale data offers, each with its pattern in parentheses and the same three timestamp examples so you can see it in action. Grab a snack, we're going through all of them. π
Bhβ patternh B, and here's how it lands:
2008-02-05T18:30:30 = 6 B
1995-12-22T09:05:02 = 9 B
-0010-09-15T04:44:23 = 4 B
Bhmβ patternh: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β patternh: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β patternccc, just the day name and nothing else:
2008-02-05T18:30:30 = α’αααΆα
1995-12-22T09:05:02 = ααα
-0010-09-15T04:44:23 = αα
αα
EBhmβ patternE 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β patternE 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β patternE HH:mm, 24-hour o'clock realness:
2008-02-05T18:30:30 = α’αααΆα 18:30
1995-12-22T09:05:02 = ααα 09:05
-0010-09-15T04:44:23 = αα
αα 04:44
EHmsβ patternE 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β patternd E, day number first for a change:
2008-02-05T18:30:30 = 5 α’αααΆα
1995-12-22T09:05:02 = 22 ααα
-0010-09-15T04:44:23 = 15 αα
αα
Ehmβ patternE 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β patternE 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β patterny G, year plus era:
2008-02-05T18:30:30 = 2008 α.α.
1995-12-22T09:05:02 = 1995 α.α.
-0010-09-15T04:44:23 = -10 αα α.α.
GyMMMβ patternMMM y G:
2008-02-05T18:30:30 = αααα 2008 α.α.
1995-12-22T09:05:02 = αααΌ 1995 α.α.
-0010-09-15T04:44:23 = ααααΆ -10 αα α.α.
GyMMMEdβ patternE d MMM y G, the whole squad in one line:
2008-02-05T18:30:30 = α’αααΆα 5 αααα 2008 α.α.
1995-12-22T09:05:02 = ααα 22 αααΌ 1995 α.α.
-0010-09-15T04:44:23 = αα
αα 15 ααααΆ -10 αα α.α.
GyMMMdβ patternd 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β patternGGGGG 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β patternHH, bare 24-hour hour:
2008-02-05T18:30:30 = 18
1995-12-22T09:05:02 = 09
-0010-09-15T04:44:23 = 04
Hmβ patternHH:mm:
2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 09:05
-0010-09-15T04:44:23 = 04:44
Hmsβ patternHH: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β patternHH:mm:ss v, now with the timezone name:
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β patternHH: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β patternL, just the month number, no notes:
2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9
MEdβ patternE d/M:
2008-02-05T18:30:30 = α’αααΆα 5/2
1995-12-22T09:05:02 = ααα 22/12
-0010-09-15T04:44:23 = αα
αα 15/9
MMMβ patternLLL, the month name in stand-alone form:
2008-02-05T18:30:30 = αααα
1995-12-22T09:05:02 = αααΌ
-0010-09-15T04:44:23 = ααααΆ
MMMEdβ patternE d MMM:
2008-02-05T18:30:30 = α’αααΆα 5 αααα
1995-12-22T09:05:02 = ααα 22 αααΌ
-0010-09-15T04:44:23 = αα
αα 15 ααααΆ
MMMMW-count-otherβ patternααααΆα ααΈ W αααα MMMM, the week-of-month one, and yes it'scount-otherbecause that's the plural category this locale actually uses here:
2008-02-05T18:30:30 = ααααΆα ααΈ 1 αααα αααα
1995-12-22T09:05:02 = ααααΆα ααΈ 3 αααα αααΌ
-0010-09-15T04:44:23 = ααααΆα ααΈ 2 αααα ααααΆ
MMMMdβ patternd MMMM:
2008-02-05T18:30:30 = 5 αααα
1995-12-22T09:05:02 = 22 αααΌ
-0010-09-15T04:44:23 = 15 ααααΆ
MMMdβ patternd MMM:
2008-02-05T18:30:30 = 5 αααα
1995-12-22T09:05:02 = 22 αααΌ
-0010-09-15T04:44:23 = 15 ααααΆ
Mdβ patternd/M:
2008-02-05T18:30:30 = 5/2
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/9
dβ patternd, literally just the day:
2008-02-05T18:30:30 = 5
1995-12-22T09:05:02 = 22
-0010-09-15T04:44:23 = 15
hβ patternh a, hour plus AM/PM, nothing more:
2008-02-05T18:30:30 = 6 PM
1995-12-22T09:05:02 = 9 AM
-0010-09-15T04:44:23 = 4 AM
hmβ patternh: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β patternh: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β patternh: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β patternh: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β patternmm:ss:
(and that's where part 1 runs out β the ms examples roll over into the next chunk, so hold that thought, bestie π«Ά)
okay bestie, we're picking up right where we left off β finishing the example values for that last pattern:
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
β¨ and now the year-flavoured patterns, which are honestly the main character energy of this whole locale β¨
y β just the year, that's it, that's the whole vibe
2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10
yM β month then year, slash between them π
2008-02-05T18:30:30 = 2/2008
1995-12-22T09:05:02 = 12/1995
-0010-09-15T04:44:23 = 9/-10
yMEd β weekday first, then day/month/year, all cozy together
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 β short month name + year, chef's kiss π
2008-02-05T18:30:30 = αααα 2008
1995-12-22T09:05:02 = αααΌ 1995
-0010-09-15T04:44:23 = ααααΆ -10
yMMMEd β the full little package: weekday, day, short month, year πΈ
2008-02-05T18:30:30 = α’αααΆα 5 αααα 2008
1995-12-22T09:05:02 = ααα 22 αααΌ 1995
-0010-09-15T04:44:23 = αα
αα 15 ααααΆ -10
yMMMM β long month name + year, no day invited
2008-02-05T18:30:30 = αααα 2008
1995-12-22T09:05:02 = αααΌ 1995
-0010-09-15T04:44:23 = ααααΆ -10
yMMMd β day, short month, year β the classic trio π«Ά
2008-02-05T18:30:30 = 5 αααα 2008
1995-12-22T09:05:02 = 22 αααΌ 1995
-0010-09-15T04:44:23 = 15 ααααΆ -10
yMd β all numbers, all slashes, no thoughts just d/M/y
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 β short quarter label + year, fiscal girlies rise π
2008-02-05T18:30:30 = ααααΆαααΈ 1 2008
1995-12-22T09:05:02 = ααααΆαααΈ 4 1995
-0010-09-15T04:44:23 = ααααΆαααΈ 3 -10
yQQQQ β long quarter label + year. yes it looks identical to yQQQ here, no I'm not fixing it, that's literally what the data says π
2008-02-05T18:30:30 = ααααΆαααΈ 1 2008
1995-12-22T09:05:02 = ααααΆαααΈ 4 1995
-0010-09-15T04:44:23 = ααααΆαααΈ 3 -10
yw-count-other β "week w of year Y" but make it Cambodian π¦
2008-02-05T18:30:30 = ααααΆα ααΈ 6 αααααΆα 2008
1995-12-22T09:05:02 = ααααΆα ααΈ 51 αααααΆα 1995
-0010-09-15T04:44:23 = ααααΆα ααΈ 37 αααααΆα -10
π Miscellaneous
A couple of random little settings, but they matter, promise:
- Prefers 24 hour time? β
Noπ - Local first day of the week β
7 (α’αΆααα)
π°οΈ Strftime Patterns
these are the strftime-style escapes, and honestly they're giving vintage-but-still-slaying:
%c(%A ααα %e αα %B αααΆα %Y, %H ααα %M ααΆααΈ %S αααΆα) β the whole date and time situation
2008-02-05T18:30:30 = α’αααΆα ααα 5 αα αααα αααΆα 2008, 18 ααα 30 ααΆααΈ 30 αααΆααΈ
1995-12-22T09:05:02 = ααα ααα 22 αα αααΌ αααΆα 1995, 09 ααα 05 ααΆααΈ 02 αααΆααΈ
-0010-09-15T04:44:23 = αα
αα ααα 15 αα ααααΆ αααΆα -10, 04 ααα 44 ααΆααΈ 23 αααΆααΈ
%x(%e %B %Y) β date format only, no clock invited
2008-02-05T18:30:30 = 5 αααα 2008
1995-12-22T09:05:02 = 22 αααΌ 1995
-0010-09-15T04:44:23 = 15 ααααΆ -10
ngl that leading space in the first %x line? it's in the original, bestie. we do not touch the data. π«‘
%X(%H:%M:%S) β time format only, clock o'clock β°
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 whole support section. go read it, it's iconic.
and that's the page, bestie!! π this whole thing is perl v5.42.0, dated 2024-12-12 β so go forth, format your Khmer dates, and slay β¨π
π¦ 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