DateTim...e::en_MW(3)
β¨ NAME β¨
Okay so the header on this one is literally DateTim...e::en_MW(3) β yes bestie, it got chopped to fit the margin, that's not a typo, that's just man doing its thing π β and it lives in the User Contributed Perl Documentation. The actual thing it documents is DateTime::Locale::en_MW, which is the locale data for the English Malawi (en-MW) locale. Slay. π²πΌ
π¦ DESCRIPTION π¦
This pod file contains examples of the locale data available for the English Malawi locale. That's it, that's the whole premise β it's a show-and-tell of what en-MW looks like when you actually format stuff with it. No cap, it's just examples, and we're gonna go through every single one π
πΈ Days
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
π Not the narrow days having twoTs and twoSs β yes, that's genuinely what they are, and no, we are not fixing it, it's the data.
π Months
Wide (format)
January
February
March
April
May
June
July
August
September
October
November
December
Abbreviated (format)
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sept
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
Sept
Oct
Nov
Dec
Narrow (stand-alone)
J
F
M
A
M
J
J
A
S
O
N
D
π Bestie the narrow months areJ F M A M J J A S O N Dand yes, five of them are repeats β iconic behaviour honestly. And peepSeptin the abbreviated list with its extra letter, she's different, she's quirky, we love her. π
π Quarters
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
Wide (format)
Before Christ
Anno Domini
Abbreviated (format)
BC
AD
Narrow (format)
B
A
π Quick note β Eras here only gets the three format flavours. There's no stand-alone set for eras in this locale. Don't go looking, it's not hiding, it's just not there.
π Date Formats
Full
2008-02-05T18:30:30 = Tuesday, 5 February 2008
1995-12-22T09:05:02 = Friday, 22 December 1995
-0010-09-15T04:44:23 = Saturday, 15 September -10
Long
2008-02-05T18:30:30 = 5 February 2008
1995-12-22T09:05:02 = 22 December 1995
-0010-09-15T04:44:23 = 15 September -10
Medium
2008-02-05T18:30:30 = 5 Feb 2008
1995-12-22T09:05:02 = 22 Dec 1995
-0010-09-15T04:44:23 = 15 Sept -10
Short
2008-02-05T18:30:30 = 05/02/2008
1995-12-22T09:05:02 = 22/12/1995
-0010-09-15T04:44:23 = 15/09/-10
π Yes the short form is day/month/year and the year-10renders as-10inside the slashes. It's giving chaos but it's correct chaos, periodt.
β 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
π«Ά Notice how Full and Long are lowkey identical here, and how the zone (UTC) drops off the moment you go Medium or Short. That's the whole flex of this locale, no need to overthink it.
π₯ Datetime Formats
Full
2008-02-05T18:30:30 = Tuesday, 5 February 2008, 6:30:30 pm UTC
1995-12-22T09:05:02 = Friday, 22 December 1995, 9:05:02 am UTC
-0010-09-15T04:44:23 = Saturday, 15 September -10, 4:44:23 am UTC
Long
2008-02-05T18:30:30 = 5 February 2008, 6:30:30 pm UTC
1995-12-22T09:05:02 = 22 December 1995, 9:05:02 am UTC
-0010-09-15T04:44:23 = 15 September -10, 4:44:23 am UTC
Medium
2008-02-05T18:30:30 = 5 Feb 2008, 6:30:30 pm
1995-12-22T09:05:02 = 22 Dec 1995, 9:05:02 am
-0010-09-15T04:44:23 = 15 Sept -10, 4:44:23 am
Short
2008-02-05T18:30:30 = 05/02/2008, 6:30 pm
1995-12-22T09:05:02 = 22/12/1995, 9:05 am
-0010-09-15T04:44:23 = 15/09/-10, 4:44 am
π Available Formats π
Okay this is the big one, the main character section π Every format name comes with its pattern in parens, and then the three same three timestamps over and over so you can see exactly what each one does. Buckle up bestie, there's like fifty of them and we're doing all of them. No skipping. Not me being thorough. π
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
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 β E d
2008-02-05T18:30:30 = Tue 5
1995-12-22T09:05:02 = Fri 22
-0010-09-15T04:44:23 = Sat 15
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
Ehm-alt-ascii β 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
Ehms-alt-ascii β 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
π‘ Bestie, alt-ascii = the same format but written with plain ASCII only. That's literally the whole difference between the pairs, iykyk.
Gy β y G
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
2008-02-05T18:30:30 = Feb 2008 AD
1995-12-22T09:05:02 = Dec 1995 AD
-0010-09-15T04:44:23 = Sept -10 BC
GyMMMEd β E, d MMM y G
2008-02-05T18:30:30 = Tue, 5 Feb 2008 AD
1995-12-22T09:05:02 = Fri, 22 Dec 1995 AD
-0010-09-15T04:44:23 = Sat, 15 Sept -10 BC
GyMMMd β d MMM y G
2008-02-05T18:30:30 = 5 Feb 2008 AD
1995-12-22T09:05:02 = 22 Dec 1995 AD
-0010-09-15T04:44:23 = 15 Sept -10 BC
GyMd β d/M/y G
2008-02-05T18:30:30 = 5/2/2008 AD
1995-12-22T09:05:02 = 22/12/1995 AD
-0010-09-15T04:44:23 = 15/9/-10 BC
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, dd/MM
2008-02-05T18:30:30 = Tue, 05/02
1995-12-22T09:05:02 = Fri, 22/12
-0010-09-15T04:44:23 = Sat, 15/09
MMM β LLL
2008-02-05T18:30:30 = Feb
1995-12-22T09:05:02 = Dec
-0010-09-15T04:44:23 = Sept
MMMEd β E, d MMM
2008-02-05T18:30:30 = Tue, 5 Feb
1995-12-22T09:05:02 = Fri, 22 Dec
-0010-09-15T04:44:23 = Sat, 15 Sept
MMMMW-count-one β 'week' W 'of' MMMM
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
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
πΈcount-oneandcount-othergiving the exact same output here? Yeah. Plural categories exist, English just doesn't differentiate in this case. It's fine. It's giving "we tried". π
MMMMd β d MMMM
2008-02-05T18:30:30 = 5 February
1995-12-22T09:05:02 = 22 December
-0010-09-15T04:44:23 = 15 September
MMMd β d MMM
2008-02-05T18:30:30 = 5 Feb
1995-12-22T09:05:02 = 22 Dec
-0010-09-15T04:44:23 = 15 Sept
MMdd β dd/MM
2008-02-05T18:30:30 = 05/02
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/09
Md β dd/MM
2008-02-05T18:30:30 = 05/02
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/09
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
h-alt-ascii β 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
hm-alt-ascii β 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
hms-alt-ascii β 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
hmsv-alt-ascii β 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
hmv-alt-ascii β 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
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
y β y
Okay bestie, that's where this half of the page cuts off β y is up next and we pick it up in part 2 π don't go anywhere, the rest of the format list is literally right there waiting π¦β¨
okay the format list keeps rolling, bestie β hereβs the rest of the examples exactly as they were, no heading repeat, just data π
2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10
and then the named patterns hit like this π
yM(MM/y)
2008-02-05T18:30:30 = 02/2008
1995-12-22T09:05:02 = 12/1995
-0010-09-15T04:44:23 = 09/-10
yMEd(E, dd/MM/y)
2008-02-05T18:30:30 = Tue, 05/02/2008
1995-12-22T09:05:02 = Fri, 22/12/1995
-0010-09-15T04:44:23 = Sat, 15/09/-10
yMMM(MMM y)
2008-02-05T18:30:30 = Feb 2008
1995-12-22T09:05:02 = Dec 1995
-0010-09-15T04:44:23 = Sept -10
yMMMEd(E, d MMM y)
2008-02-05T18:30:30 = Tue, 5 Feb 2008
1995-12-22T09:05:02 = Fri, 22 Dec 1995
-0010-09-15T04:44:23 = Sat, 15 Sept -10
yMMMM(MMMM y)
2008-02-05T18:30:30 = February 2008
1995-12-22T09:05:02 = December 1995
-0010-09-15T04:44:23 = September -10
yMMMd(d MMM y)
2008-02-05T18:30:30 = 5 Feb 2008
1995-12-22T09:05:02 = 22 Dec 1995
-0010-09-15T04:44:23 = 15 Sept -10
yMd(dd/MM/y)
2008-02-05T18:30:30 = 05/02/2008
1995-12-22T09:05:02 = 22/12/1995
-0010-09-15T04:44:23 = 15/09/-10
yQQQ(QQQ y)
2008-02-05T18:30:30 = Q1 2008
1995-12-22T09:05:02 = Q4 1995
-0010-09-15T04:44:23 = Q3 -10
yQQQQ(QQQQ y)
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('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('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 π
- Prefers 24 hour time? No
- Local first day of the week
1(Monday)
π¦ Strftime Patterns π¦
%c(%a %b %e %H:%M:%S %Y) β date time format
2008-02-05T18:30:30 = Tue Feb 5 18:30:30 2008
1995-12-22T09:05:02 = Fri Dec 22 09:05:02 1995
-0010-09-15T04:44:23 = Sat Sept 15 04:44:23 -10
%x(%m/%d/%y) β date format
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
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.
okay thatβs the whole page, bestie π the footer energy is perl v5.42.0 / 2024-12-12 / DateTim...e::en_MW(3) β iconic, no cap. πβ¨
π¦ 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