DateTim...ale::blt(3)

πŸ’… NAME πŸ’…

okay so bestie, welcome to DateTime::Locale::blt β€” straight out of the User Contributed Perl Documentation, no cap. This one is literally the locale data examples for the Tai Dam (blt) locale. πŸŽ€


✨ DESCRIPTION ✨

This pod file is basically the vibe check for the Tai Dam locale β€” it's packed with examples of all the locale data that's available for it. Think of it as the group chat receipts for how blt formats days, months, quarters, eras, dates, times, and all the fancy custom patterns. 🌸

Let's get into it. πŸ¦‹


β˜€οΈ Days β˜€οΈ

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
ngl the wide and abbreviated versions are giving the exact same energy here β€” not one single letter of difference, we love consistency πŸ’… (and yes, the narrow ones double up on T and S, that's just how it is, don't come for me)

πŸŒ™ Months πŸŒ™

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
okay the M01–M12 life is iconic honestly, it's giving "we didn't have time to name them so we numbered them" and I respect the efficiency πŸ”₯ the narrow ones keep it real with just 1 through 12 β€” 10, 11 and 12 are not like the others, they're two digits, main character energy πŸ’œ

🌸 Quarters 🌸

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
four quarters, four icons πŸ‘‘ wide and abbreviated are twinning (both Q1–Q4), narrow strips it down to bare digits. slay.

πŸ•°οΈ Eras πŸ•°οΈ

Wide (format)

BCE
CE

Abbreviated (format)

BCE
CE

Narrow (format)

BCE
CE
only two eras exist here and every single width is the same β€” BCE then CE. short king behavior but make it chronological πŸ’€

πŸ“… Date Formats πŸ“…

okay so these are the four standard date lengths, each one shown with the same three test timestamps so you can see how they dress up differently. πŸŽ€

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
lowkey Long and Medium are identical here, don't @ me β€” Full adds the weekday name, Short goes full ISO and drops everything else. also πŸ’€ at that negative year just vibing as -10, periodt.

⏰ Time Formats ⏰

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
Full and Long are literally twinning β€” both keep the seconds AND the UTC. Medium keeps seconds but ghosts the timezone, Short drops both. 24-hour clock supremacy, we stan 🫢

πŸ¦‹ Datetime Formats πŸ¦‹

date + time, holding hands, walking into the sunset. 🌈

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
the way Full is the only one with a comma before the weekday… she's extra and she's earned it πŸ‘‘ Long flexes the UTC, Medium says "no timezone, no problem", and Short keeps it cute and compact.

πŸ’– Available Formats πŸ’–

okay bestie, this is the big one β€” every named pattern this locale ships with, plus the three canonical timestamps so you can see each one in action. buckle up. 🎒

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 (d, E)

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

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

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 (GGGGG 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

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

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)

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

yQQQ (y QQQ)

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

yQQQQ (y QQQQ)

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

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
okay that was a LOT but we got through it together 🫢 quick vibe notes: MMMMd and MMMd are literally identical in output here (both M02 5 energy), same for yMMMM and yMMM β€” the patterns in parens are different but the results match, that's just the data, don't shoot the messenger πŸ’€ and yes there are two count-other entries, MMMMW-count-other and yw-count-other, and they both do the "week N of …" thing with literal 'week' and 'of' quoted text. iykyk. ✨

🧚 Miscellaneous 🧚

Prefers 24 hour time?

Yes

Local first day of the week

1 (Mon)

24-hour clock: confirmed, she's not doing AM/PM unless a pattern explicitly makes her (h, hm, hms, hmsv, hmv and the Ehm/Ehms crew, looking at you πŸ‘€). and the week starts on 1 (Mon) β€” Monday besties rise πŸ™Œ

⭐ Strftime Patterns ⭐

%c (%a %b %e %H:%M:%S %Y) - date time format

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
okay so %c is the classic "everything, all at once" pattern β€” %a %b %e %H:%M:%S %Y, which is literally abbreviated weekday, abbreviated month, space-padded day, 24-hour time with seconds, and the year. πŸ’– notice the double space on the first line? that's %e doing its space-padded thing β€” day 5 gets an extra space so it lines up with a two-digit day like 22. yep, Saturday the 15th and Tuesday the 5th are out here with different spacing and that's correct, don't touch it. πŸ”₯

(and that's where part 1 wraps β€” but we're not done yet bestie, there's more coming πŸ’…)

  • %x (%m/%d/%y) β€” the date format, bestie πŸ’… like, month/day/year, two digits each, no notes
2008-02-05T18:30:30 = 02/05/08
1995-12-22T09:05:02 = 12/22/95
-0010-09-15T04:44:23 = 09/15/10
ok so that third one really does have a negative year and it's still out here formatting like a main character β€” -0010 in the house 🫢 we love an elder.
  • %X (%H:%M:%S) β€” the time format, and it's giving 24-hour clock realness ⏰ hour, minute, second, all two digits, slay
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 section β€” go read that one, she's the icon, she's the blueprint πŸ‘‘


and that's the page, bestie!! πŸŽ€ you made it to the end, which honestly? iconic behaviour. this whole thing lives in the perl v5.42.0 docs, dated 2024-12-12, filed under the very mysterious and very abbreviated DateTim...ale::blt(3) β€” truncated name and all, she's just like that πŸ’– go format something cute βœ¨πŸ¦‹

πŸ“¦ where this page comes from