DateTim...ale::mhn(3)
Hey bestie π you've landed on DateTim...ale::mhn(3) β User Contributed Perl Documentation β and this is part 1 of the mhn locale data showcase. It's giving "every single example is invited to the party," so let's go. β¨
π NAME π
DateTime::Locale::mhn β locale data examples for the (mhn) locale
That's the name section, and yes, the double space is part of the vibe. Iconic. π
πΈ DESCRIPTION πΈ
This pod file contains examples of the locale data available for the locale.
Lowkey it's a whole museum of examples, and we're walking through every wing. π«Ά
ποΈ Days ποΈ
Days first, obviously. Format and stand-alone versions are all matching here, which is a slay. π
Wide (format)
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Abbreviated (format)
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Narrow (format)
M
T
W
T
F
S
S
Wide (stand-alone)
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Abbreviated (stand-alone)
Mon
Tue
Wed
Thu
Fri
Sat
Sun
Narrow (stand-alone)
M
T
W
T
F
S
S
π¦ Months π¦
Months are next. The wide and abbreviated versions are giving M01 through M12; narrow is just the numbers. Obsessed with the consistency. β¨
Wide (format)
M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12
Abbreviated (format)
M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12
Narrow (format)
1
2
3
4
5
6
7
8
9
10
11
12
Wide (stand-alone)
M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12
Abbreviated (stand-alone)
M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12
Narrow (stand-alone)
1
2
3
4
5
6
7
8
9
10
11
12
π Quarters π
Quarter vibes: Q1 to Q4 for wide and abbreviated, and 1 to 4 for narrow. Periodt. π
Wide (format)
Q1
Q2
Q3
Q4
Abbreviated (format)
Q1
Q2
Q3
Q4
Narrow (format)
1
2
3
4
Wide (stand-alone)
Q1
Q2
Q3
Q4
Abbreviated (stand-alone)
Q1
Q2
Q3
Q4
Narrow (stand-alone)
1
2
3
4
π Eras π
Only wide, abbreviated and narrow here β no stand-alone era era, bestie. π
Wide (format)
BCE
CE
Abbreviated (format)
BCE
CE
Narrow (format)
BCE
CE
πΈ Date Formats πΈ
Now the actual date formats. Three sample timestamps in each: 2008-02-05T18:30:30, 1995-12-22T09:05:02, and the iconic negative-year one -0010-09-15T04:44:23. π«Ά
Full
2008-02-05T18:30:30 = 2008 M02 5, Tue
1995-12-22T09:05:02 = 1995 M12 22, Fri
-0010-09-15T04:44:23 = -10 M09 15, Sat
Long
2008-02-05T18:30:30 = 2008 M02 5
1995-12-22T09:05:02 = 1995 M12 22
-0010-09-15T04:44:23 = -10 M09 15
Medium
2008-02-05T18:30:30 = 2008 M02 5
1995-12-22T09:05:02 = 1995 M12 22
-0010-09-15T04:44:23 = -10 M09 15
Short
2008-02-05T18:30:30 = 2008-02-05
1995-12-22T09:05:02 = 1995-12-22
-0010-09-15T04:44:23 = -10-09-15
β° Time Formats β°
Time to clock in, literally. Full and Long both show UTC; Medium and Short don't. That's the whole tea. β
Full
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
Long
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
Medium
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 09:05:02
-0010-09-15T04:44:23 = 04:44:23
Short
2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 09:05
-0010-09-15T04:44:23 = 04:44
π₯ Datetime Formats π₯
Date plus time combo, the main character energy. Full gets the comma, Long doesn't, Medium drops UTC, Short goes back to the hyphenated date. π
Full
2008-02-05T18:30:30 = 2008 M02 5, Tue 18:30:30 UTC
1995-12-22T09:05:02 = 1995 M12 22, Fri 09:05:02 UTC
-0010-09-15T04:44:23 = -10 M09 15, Sat 04:44:23 UTC
Long
2008-02-05T18:30:30 = 2008 M02 5 18:30:30 UTC
1995-12-22T09:05:02 = 1995 M12 22 09:05:02 UTC
-0010-09-15T04:44:23 = -10 M09 15 04:44:23 UTC
Medium
2008-02-05T18:30:30 = 2008 M02 5 18:30:30
1995-12-22T09:05:02 = 1995 M12 22 09:05:02
-0010-09-15T04:44:23 = -10 M09 15 04:44:23
Short
2008-02-05T18:30:30 = 2008-02-05 18:30
1995-12-22T09:05:02 = 1995-12-22 09:05
-0010-09-15T04:44:23 = -10-09-15 04:44
π Available Formats π
Okay bestie, this is the big one: every available format label and its three sample outputs, in order. No skipping. π
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 = Tue
1995-12-22T09:05:02 = Fri
-0010-09-15T04:44:23 = Sat
EBh (E h B)
2008-02-05T18:30:30 = Tue 6 B
1995-12-22T09:05:02 = Fri 9 B
-0010-09-15T04:44:23 = Sat 4 B
EBhm (E 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)
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)
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)
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)
2008-02-05T18:30:30 = 5, Tue
1995-12-22T09:05:02 = 22, Fri
-0010-09-15T04:44:23 = 15, Sat
Eh (E h a)
2008-02-05T18:30:30 = Tue 6 PM
1995-12-22T09:05:02 = Fri 9 AM
-0010-09-15T04:44:23 = Sat 4 AM
Ehm (E h:mm a)
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)
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 (G y)
2008-02-05T18:30:30 = CE 2008
1995-12-22T09:05:02 = CE 1995
-0010-09-15T04:44:23 = BCE -10
GyM (G y-MM)
2008-02-05T18:30:30 = CE 2008-02
1995-12-22T09:05:02 = CE 1995-12
-0010-09-15T04:44:23 = BCE -10-09
GyMEd (G y-MM-dd, E)
2008-02-05T18:30:30 = CE 2008-02-05, Tue
1995-12-22T09:05:02 = CE 1995-12-22, Fri
-0010-09-15T04:44:23 = BCE -10-09-15, Sat
GyMMM (G y MMM)
2008-02-05T18:30:30 = CE 2008 M02
1995-12-22T09:05:02 = CE 1995 M12
-0010-09-15T04:44:23 = BCE -10 M09
GyMMMEd (G y MMM d, E)
2008-02-05T18:30:30 = CE 2008 M02 5, Tue
1995-12-22T09:05:02 = CE 1995 M12 22, Fri
-0010-09-15T04:44:23 = BCE -10 M09 15, Sat
GyMMMd (G y MMM d)
2008-02-05T18:30:30 = CE 2008 M02 5
1995-12-22T09:05:02 = CE 1995 M12 22
-0010-09-15T04:44:23 = BCE -10 M09 15
GyMd (G y-MM-dd)
2008-02-05T18:30:30 = CE 2008-02-05
1995-12-22T09:05:02 = CE 1995-12-22
-0010-09-15T04:44:23 = BCE -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
Hv (HH v)
2008-02-05T18:30:30 = 18 UTC
1995-12-22T09:05:02 = 09 UTC
-0010-09-15T04:44:23 = 04 UTC
M (L)
2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9
MEd (MM-dd, E)
2008-02-05T18:30:30 = 02-05, Tue
1995-12-22T09:05:02 = 12-22, Fri
-0010-09-15T04:44:23 = 09-15, Sat
MMM (LLL)
2008-02-05T18:30:30 = M02
1995-12-22T09:05:02 = M12
-0010-09-15T04:44:23 = M09
MMMEd (MMM d, E)
2008-02-05T18:30:30 = M02 5, Tue
1995-12-22T09:05:02 = M12 22, Fri
-0010-09-15T04:44:23 = M09 15, Sat
MMMMW-count-other ('week' W 'of' MMMM)
2008-02-05T18:30:30 = week 1 of M02
1995-12-22T09:05:02 = week 3 of M12
-0010-09-15T04:44:23 = week 2 of M09
MMMMd (MMMM d)
2008-02-05T18:30:30 = M02 5
1995-12-22T09:05:02 = M12 22
-0010-09-15T04:44:23 = M09 15
MMMd (MMM d)
2008-02-05T18:30:30 = M02 5
1995-12-22T09:05:02 = M12 22
-0010-09-15T04:44:23 = M09 15
Md (MM-dd)
2008-02-05T18:30:30 = 02-05
1995-12-22T09:05:02 = 12-22
-0010-09-15T04:44:23 = 09-15
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
hv (h a v)
2008-02-05T18:30:30 = 6 PM UTC
1995-12-22T09:05:02 = 9 AM UTC
-0010-09-15T04:44:23 = 4 AM UTC
ms (mm:ss)
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
y (y)
2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10
yM (y-MM)
2008-02-05T18:30:30 = 2008-02
1995-12-22T09:05:02 = 1995-12
-0010-09-15T04:44:23 = -10-09
yMEd (y-MM-dd, E)
2008-02-05T18:30:30 = 2008-02-05, Tue
1995-12-22T09:05:02 = 1995-12-22, Fri
-0010-09-15T04:44:23 = -10-09-15, Sat
yMMM (y MMM)
2008-02-05T18:30:30 = 2008 M02
1995-12-22T09:05:02 = 1995 M12
-0010-09-15T04:44:23 = -10 M09
yMMMEd (y MMM d, E)
2008-02-05T18:30:30 = 2008 M02 5, Tue
1995-12-22T09:05:02 = 1995 M12 22, Fri
-0010-09-15T04:44:23 = -10 M09 15, Sat
yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 M02
1995-12-22T09:05:02 = 1995 M12
-0010-09-15T04:44:23 = -10 M09
yMMMd (y MMM d)
2008-02-05T18:30:30 = 2008 M02 5
1995-12-22T09:05:02 = 1995 M12 22
-0010-09-15T04:44:23 = -10 M09 15
yMd (y-MM-dd)
yQQQ(that'sy QQQ) π
2008-02-05T18:30:30 = 2008 Q1
1995-12-22T09:05:02 = 1995 Q4
-0010-09-15T04:44:23 = -10 Q3
yQQQQ(they QQQQone β yes bestie, it gives the exact same output asyQQQ, iconic of it honestly) π¦
2008-02-05T18:30:30 = 2008 Q1
1995-12-22T09:05:02 = 1995 Q4
-0010-09-15T04:44:23 = -10 Q3
yw-count-other(renders as'week' w 'of' Yβ literally reads like a sentence bestie, so cute) πΈ
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
Okay these aren't patterns, they're just little locale vibe-checks π
- Prefers 24 hour time? β
Yesβ° (no AM/PM nonsense in this house, periodt) - Local first day of the week β
1 (Mon)π (Monday is the main character here, no cap)
β¨ Strftime Patterns β¨
These are the classic strftime-style ones, and yes they come with all three sample dates so you can literally see the glow-up π
%c(%a %b %e %H:%M:%S %Y) β the full date and time format, the whole package π«Ά
2008-02-05T18:30:30 = Tue M02 5 18:30:30 2008
1995-12-22T09:05:02 = Fri M12 22 09:05:02 1995
-0010-09-15T04:44:23 = Sat M09 15 04:44:23 -10
Not me noticing the M sitting in front of the month numbers up there π that's exactly what's written, so that's exactly what you get β copying it verbatim, bestie, no editing, fr fr.
%x(%m/%d/%y) β date only, slashes and all π
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 only, clocked π
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 that page, it's the parent and it ate π
And that's a wrap on the locale data bestie!! πβ¨ This page came from the Perl v5.42.2 docs, dated 2026-09-15, and it's filed under DateTim...ale::mhn(3) in the User Contributed Perl Documentation β mwah, go format some dates, you're gonna slay ππ¦
π¦ where this page comes from
- alpine 3.23: perl-datetime-locale-doc 1.46-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- alpine 3.24: perl-datetime-locale-doc 1.46-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms