DateTim...e::vi_VN(3)

🌸 DateTime::Locale::vi_VN — locale data for Vietnamese Vietnam (vi-VN) 💅

okay so first thing's first: the file in the corner is DateTime::Locale::vi_VN(3) and it's part of the User Contributed Perl Documentation. Bestie, this is not a program you run, it's a showcase page — a flex, basically. It's the locale data for the Vietnamese Vietnam locale, laid out so you can actually see what you'd get back. No flags, no exit codes, no "please don't run this as root." Just vibes and Vietnamese date strings. 🎀


✨ DESCRIPTION ✨

This pod file is literally a big pile of examples showing off the locale data available for the Vietnamese Vietnam locale. That's the whole assignment. Every section below is the same idea: here's the input, here's what it looks like all dressed up. 🦋


🌈 Days

Wide (format)

the full-name era, no abbreviations, committed to the bit:

Thứ Hai
Thứ Ba
Thứ Tư
Thứ Năm
Thứ Sáu
Thứ Bảy
Chủ Nhật

not Sunday being Chủ Nhật and refusing to follow the Thứ pattern — main character energy, honestly. 👑

Abbreviated (format)

Th 2
Th 3
Th 4
Th 5
Th 6
Th 7
CN

see? Sunday stays doing its own thing with CN. consistency is for other days. 😭

Narrow (format)

the itty-bitty version: T2, T3, T4, T5, T6, T7, CN.

Wide (stand-alone)

identical to wide format, same seven strings:

Thứ Hai
Thứ Ba
Thứ Tư
Thứ Năm
Thứ Sáu
Thứ Bảy
Chủ Nhật

Abbreviated (stand-alone)

same as abbreviated format, again:

Th 2
Th 3
Th 4
Th 5
Th 6
Th 7
CN

Narrow (stand-alone)

and again, the lil ones: T2, T3, T4, T5, T6, T7, CN.

ngl the format and stand-alone sets are giving twins here — for days, they match. I'm just reporting the data, not judging. 🫶

🍓 Months

Wide (format)

lowercase tháng, all twelve of them:

tháng 1
tháng 2
tháng 3
tháng 4
tháng 5
tháng 6
tháng 7
tháng 8
tháng 9
tháng 10
tháng 11
tháng 12

Abbreviated (format)

thg instead of tháng, but the numbers stay:

thg 1
thg 2
thg 3
thg 4
thg 5
thg 6
thg 7
thg 8
thg 9
thg 10
thg 11
thg 12

Narrow (format)

just the digits, no words at all: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12.

Wide (stand-alone)

⚠️ plot twist — these are capitalized: Tháng 1, Tháng 2, Tháng 3, Tháng 4, Tháng 5, Tháng 6, Tháng 7, Tháng 8, Tháng 9, Tháng 10, Tháng 11, Tháng 12.

Abbreviated (stand-alone)

also capitalized, and not shortened to thg — they're the full Tháng + number:

Tháng 1
Tháng 2
Tháng 3
Tháng 4
Tháng 5
Tháng 6
Tháng 7
Tháng 8
Tháng 9
Tháng 10
Tháng 11
Tháng 12

Narrow (stand-alone)

back to plain digits: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. slay, minimalism. ✨


🦋 Quarters

Wide (format)

Quý 1
Quý 2
Quý 3
Quý 4

Abbreviated (format)

Q1, Q2, Q3, Q4.

Narrow (format)

1, 2, 3, 4.

Wide (stand-alone)

and here's the lowercase glow-up: quý 1, quý 2, quý 3, quý 4.

Abbreviated (stand-alone)

Q1, Q2, Q3, Q4 — yes, same as format. 💀

Narrow (stand-alone)

1, 2, 3, 4 — yes, same as format too. we love a stable queen.


💜 Eras

Wide (format)

Trước Chúa Giáng Sinh
Sau Công Nguyên

Abbreviated (format)

TCN and SCN.

Narrow (format)

TCN and CN.

👀 heads up: the narrow second era is CN, which is not the same as the abbreviated SCN. That's not me being messy — that's exactly what's written. (It also happens to look exactly like narrow Sunday. Coincidence? Not my department.)

⭐ Date Formats

Full

2008-02-05T18:30:30 = Thứ Ba, 5 tháng 2, 2008
1995-12-22T09:05:02 = Thứ Sáu, 22 tháng 12, 1995
-0010-09-15T04:44:23 = Thứ Bảy, 15 tháng 9, -10

Long

2008-02-05T18:30:30 = 5 tháng 2, 2008
1995-12-22T09:05:02 = 22 tháng 12, 1995
-0010-09-15T04:44:23 = 15 tháng 9, -10

Medium

2008-02-05T18:30:30 = 5 thg 2, 2008
1995-12-22T09:05:02 = 22 thg 12, 1995
-0010-09-15T04:44:23 = 15 thg 9, -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
yes, that third one really does render the year as -10. negative years are built different. 🙈

🧚 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

🫶


🔥 Datetime Formats

Full

2008-02-05T18:30:30 = 18:30:30 UTC Thứ Ba, 5 tháng 2, 2008
1995-12-22T09:05:02 = 09:05:02 UTC Thứ Sáu, 22 tháng 12, 1995
-0010-09-15T04:44:23 = 04:44:23 UTC Thứ Bảy, 15 tháng 9, -10

Long

2008-02-05T18:30:30 = 18:30:30 UTC 5 tháng 2, 2008
1995-12-22T09:05:02 = 09:05:02 UTC 22 tháng 12, 1995
-0010-09-15T04:44:23 = 04:44:23 UTC 15 tháng 9, -10

Medium

2008-02-05T18:30:30 = 18:30:30 5 thg 2, 2008
1995-12-22T09:05:02 = 09:05:02 22 thg 12, 1995
-0010-09-15T04:44:23 = 04:44:23 15 thg 9, -10

Short

2008-02-05T18:30:30 = 18:30 5/2/08
1995-12-22T09:05:02 = 09:05 22/12/95
-0010-09-15T04:44:23 = 04:44 15/9/-10

note the time sitting in front of the date the whole way through — that's the vibe here. 💅


👑 Available Formats

okay this next bit is the motherlode: every named format, the pattern it's built from in parentheses, and then the same three timestamps rendered through it. every single one is below, in order, no skipping. 🔥

Bh — pattern h 'giờ' B

2008-02-05T18:30:30 = 6 giờ B
1995-12-22T09:05:02 = 9 giờ B
-0010-09-15T04:44:23 = 4 giờ B

Bhm — pattern 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 — pattern 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 — pattern ccc

2008-02-05T18:30:30 = Th 3
1995-12-22T09:05:02 = Th 6
-0010-09-15T04:44:23 = Th 7

EBhm — pattern h:mm B E

2008-02-05T18:30:30 = 6:30 B Th 3
1995-12-22T09:05:02 = 9:05 B Th 6
-0010-09-15T04:44:23 = 4:44 B Th 7

EBhms — pattern h:mm:ss B E

2008-02-05T18:30:30 = 6:30:30 B Th 3
1995-12-22T09:05:02 = 9:05:02 B Th 6
-0010-09-15T04:44:23 = 4:44:23 B Th 7

EHm — pattern HH:mm E

2008-02-05T18:30:30 = 18:30 Th 3
1995-12-22T09:05:02 = 09:05 Th 6
-0010-09-15T04:44:23 = 04:44 Th 7

EHms — pattern HH:mm:ss E

2008-02-05T18:30:30 = 18:30:30 Th 3
1995-12-22T09:05:02 = 09:05:02 Th 6
-0010-09-15T04:44:23 = 04:44:23 Th 7

Ed — pattern E, 'ngày' d

2008-02-05T18:30:30 = Th 3, ngày 5
1995-12-22T09:05:02 = Th 6, ngày 22
-0010-09-15T04:44:23 = Th 7, ngày 15

Ehm — pattern h:mm a E

2008-02-05T18:30:30 = 6:30 CH Th 3
1995-12-22T09:05:02 = 9:05 SA Th 6
-0010-09-15T04:44:23 = 4:44 SA Th 7

Ehms — pattern h:mm:ss a E

2008-02-05T18:30:30 = 6:30:30 CH Th 3
1995-12-22T09:05:02 = 9:05:02 SA Th 6
-0010-09-15T04:44:23 = 4:44:23 SA Th 7

Gy — pattern y G

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

GyMMM — pattern MMM y G

2008-02-05T18:30:30 = thg 2 2008 SCN
1995-12-22T09:05:02 = thg 12 1995 SCN
-0010-09-15T04:44:23 = thg 9 -10 TCN

GyMMMEd — pattern E, d MMM, y G

2008-02-05T18:30:30 = Th 3, 5 thg 2, 2008 SCN
1995-12-22T09:05:02 = Th 6, 22 thg 12, 1995 SCN
-0010-09-15T04:44:23 = Th 7, 15 thg 9, -10 TCN

GyMMMd — pattern d MMM, y G

2008-02-05T18:30:30 = 5 thg 2, 2008 SCN
1995-12-22T09:05:02 = 22 thg 12, 1995 SCN
-0010-09-15T04:44:23 = 15 thg 9, -10 TCN

GyMd — pattern d/M/y G

2008-02-05T18:30:30 = 5/2/2008 SCN
1995-12-22T09:05:02 = 22/12/1995 SCN
-0010-09-15T04:44:23 = 15/9/-10 TCN

H — pattern HH 'giờ'

2008-02-05T18:30:30 = 18 giờ
1995-12-22T09:05:02 = 09 giờ
-0010-09-15T04:44:23 = 04 giờ

Hm — pattern H:mm

2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 9:05
-0010-09-15T04:44:23 = 4:44
🫶 careful bestie — even though the pattern says H, the last two lines come out as 9:05 and 4:44, no leading zero. That's exactly what's printed above. I'm not editing the data, I'm just pointing at it.

Hms — pattern 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 — pattern 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 — pattern 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 — pattern L

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

MEd — pattern E, d/M

2008-02-05T18:30:30 = Th 3, 5/2
1995-12-22T09:05:02 = Th 6, 22/12
-0010-09-15T04:44:23 = Th 7, 15/9

MMM — pattern LLL

2008-02-05T18:30:30 = Tháng 2
1995-12-22T09:05:02 = Tháng 12
-0010-09-15T04:44:23 = Tháng 9

MMMEd — pattern E, d MMM

2008-02-05T18:30:30 = Th 3, 5 thg 2
1995-12-22T09:05:02 = Th 6, 22 thg 12
-0010-09-15T04:44:23 = Th 7, 15 thg 9

MMMMEd — pattern E, d MMMM

2008-02-05T18:30:30 = Th 3, 5 tháng 2
1995-12-22T09:05:02 = Th 6, 22 tháng 12
-0010-09-15T04:44:23 = Th 7, 15 tháng 9

MMMMW-count-other — pattern 'tuần' W 'của' 'tháng' M

2008-02-05T18:30:30 = tuần 1 của tháng 2
1995-12-22T09:05:02 = tuần 3 của tháng 12
-0010-09-15T04:44:23 = tuần 2 của tháng 9

MMMMd — pattern d MMMM

2008-02-05T18:30:30 = 5 tháng 2
1995-12-22T09:05:02 = 22 tháng 12
-0010-09-15T04:44:23 = 15 tháng 9

MMMd — pattern d MMM

2008-02-05T18:30:30 = 5 thg 2
1995-12-22T09:05:02 = 22 thg 12
-0010-09-15T04:44:23 = 15 thg 9

MMdd — pattern dd-MM

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

Md — pattern d/M

2008-02-05T18:30:30 = 5/2
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/9

d — pattern d

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

h — pattern h a

2008-02-05T18:30:30 = 6 CH
1995-12-22T09:05:02 = 9 SA
-0010-09-15T04:44:23 = 4 SA

hm — pattern h:mm a

2008-02-05T18:30:30 = 6:30 CH
1995-12-22T09:05:02 = 9:05 SA
-0010-09-15T04:44:23 = 4:44 SA

hms — pattern h:mm:ss a

2008-02-05T18:30:30 = 6:30:30 CH
1995-12-22T09:05:02 = 9:05:02 SA
-0010-09-15T04:44:23 = 4:44:23 SA

hmsv — pattern h:mm:ss a v

2008-02-05T18:30:30 = 6:30:30 CH UTC
1995-12-22T09:05:02 = 9:05:02 SA UTC
-0010-09-15T04:44:23 = 4:44:23 SA UTC

hmv — pattern h:mm a v

2008-02-05T18:30:30 = 6:30 CH UTC
1995-12-22T09:05:02 = 9:05 SA UTC
-0010-09-15T04:44:23 = 4:44 SA UTC

mmss — pattern mm:ss

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

ms — pattern mm:ss

2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
💀 yes, ms has the exact same pattern and the exact same output as mmss. Both are listed. Both are staying. Not a typo on my end.

y — pattern y

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

yM — pattern M/y

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

yMEd — pattern E, d/M/y

2008-02-05T18:30:30 = Th 3, 5/2/2008
1995-12-22T09:05:02 = Th 6, 22/12/1995
-0010-09-15T04:44:23 = Th 7, 15/9/-10

yMM — pattern 'tháng' MM, y

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

yMMM — pattern MMM y

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

and that's exactly where part 1 runs out of page, bestie — the format list keeps going in part 2, so don't go anywhere. 🎀

okay so we’re picking right back up in the middle of the format-pattern lineup — no heading repeat, just the rest of the list, and every single pattern is here, bestie 💅

  • yMMMEd (E, d MMM, y) — day-name + day + short month + year energy:
2008-02-05T18:30:30 = Th 3, 5 thg 2, 2008
1995-12-22T09:05:02 = Th 6, 22 thg 12, 1995
-0010-09-15T04:44:23 = Th 7, 15 thg 9, -10
  • yMMMM (MMMM 'năm' y) — full month name plus năm and the year, iconic:
2008-02-05T18:30:30 = tháng 2 năm 2008
1995-12-22T09:05:02 = tháng 12 năm 1995
-0010-09-15T04:44:23 = tháng 9 năm -10
  • yMMMd (d MMM, y) — day + short month + year, lowkey clean:
2008-02-05T18:30:30 = 5 thg 2, 2008
1995-12-22T09:05:02 = 22 thg 12, 1995
-0010-09-15T04:44:23 = 15 thg 9, -10
  • yMd (d/M/y) — the slashy day/month/year classic:
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) — quarter abbreviation plus year, periodt:
2008-02-05T18:30:30 = Q1 2008
1995-12-22T09:05:02 = Q4 1995
-0010-09-15T04:44:23 = Q3 -10
  • yQQQQ (QQQQ 'năm' y) — full quarter + năm + year, fancy:
2008-02-05T18:30:30 = Quý 1 năm 2008
1995-12-22T09:05:02 = Quý 4 năm 1995
-0010-09-15T04:44:23 = Quý 3 năm -10
  • yw-count-other ('tuần' w 'của' 'năm' Y) — week-of-year vibes with tuần, của, and năm:
2008-02-05T18:30:30 = tuần 6 của năm 2008
1995-12-22T09:05:02 = tuần 51 của năm 1995
-0010-09-15T04:44:23 = tuần 37 của năm -10

🌸 Miscellaneous 🌸

  • Prefers 24 hour time? Yes
  • Local first day of the week: 1 (Thứ Hai)

⏰ Strftime Patterns ⏰

  • %c (%A, %d %B Năm %Y %T %Z) — date time format, full iconic package:
2008-02-05T18:30:30 = Thứ Ba, 05 tháng 2 Năm 2008 18:30:30 UTC
1995-12-22T09:05:02 = Thứ Sáu, 22 tháng 12 Năm 1995 09:05:02 UTC
-0010-09-15T04:44:23 = Thứ Bảy, 15 tháng 9 Năm -10 04:44:23 UTC
  • %x (%d/%m/%Y) — date format, slashy and neat:
2008-02-05T18:30:30 = 05/02/2008
1995-12-22T09:05:02 = 22/12/1995
-0010-09-15T04:44:23 = 15/09/-10
  • %X (%T) — time format, clock check:
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 the whole support sitch, bestie 🫶


kisses and sparkles — this page is brought to you by perl v5.42.0 on 2024-12-12, and the main character herself: DateTim...e::vi_VN(3) 💅✨

📦 where this page comes from