DateTim...e::th_TH(3)

🎀 DateTime::Locale::th_TH 🎀

okay bestie, welcome to the th_TH page 💅 this is a User Contributed Perl Documentation page for the Thai Thailand locale, and it's basically a giant vibe check of every single string DateTime::Locale knows about for th-TH 🇹🇭✨


✨ NAME ✨

  • DateTime::Locale::th_TH — locale data examples for the Thai Thailand (th-TH) locale 🦋

🌸 DESCRIPTION 🌸

this pod file is literally just examples of the locale data that's available for the Thai Thailand locale, no cap 💖 it's giving "here's every string, laid out so you can see it" and honestly we love a transparent queen 👑


🌈 Days 🌈

Wide (format)

seven of them, in this exact order, nice and long-form 💅

วนจนทร์
วนองคาร
วนพธ
วนพฤหสบดี
วนศกร์
วนเสาร์
วนอาทิตย์

Abbreviated (format)

the short version, all dotted up 🎀

จ.
อ.
พ.
พฤ.
ศ.
ส.
อา.

Narrow (format)

teeny tiny, just the one character (or a couple, look at พฤ being extra) 🦋

จ
อ
พ
พฤ
ศ
ส
อา

Wide (stand-alone)

same wide ones, but standing on their own business ✨

วนจนทร์
วนองคาร
วนพธ
วนพฤหสบดี
วนศกร์
วนเสาร์
วนอาทิตย์

Abbreviated (stand-alone)

จ.
อ.
พ.
พฤ.
ศ.
ส.
อา.

Narrow (stand-alone)

จ
อ
พ
พฤ
ศ
ส
อา

🦋 Months 🦋

Wide (format)

twelve months, full glam, no skips 🌸

มกราคม
กมภาพนธ์
มนาคม
เมษายน
พฤษภาคม
มถนายน
กรกฎาคม
สงหาคม
กนยายน
ตลาคม
พฤศจิกายน
ธนวาคม

Abbreviated (format)

ok so heads up, bestie — yes, ม.ค. really does show up twice in this list, once for position 1 and once for position 3. that's not me being messy, that's literally what's written here 💀 copy it as-is, no cap.

ม.ค.
ก.พ.
ม.ค.
เม.ย.
พ.ค.
ม.ย.
ก.ค.
ส.ค.
ก.ย.
ต.ค.
พ.ย.
ธ.ค.

Narrow (format)

narrow is, and I cannot stress this enough, identical to abbreviated here 🙈

ม.ค.
ก.พ.
ม.ค.
เม.ย.
พ.ค.
ม.ย.
ก.ค.
ส.ค.
ก.ย.
ต.ค.
พ.ย.
ธ.ค.

Wide (stand-alone)

มกราคม
กมภาพนธ์
มนาคม
เมษายน
พฤษภาคม
มถนายน
กรกฎาคม
สงหาคม
กนยายน
ตลาคม
พฤศจิกายน
ธนวาคม

Abbreviated (stand-alone)

ม.ค.
ก.พ.
ม.ค.
เม.ย.
พ.ค.
ม.ย.
ก.ค.
ส.ค.
ก.ย.
ต.ค.
พ.ย.
ธ.ค.

Narrow (stand-alone)

ม.ค.
ก.พ.
ม.ค.
เม.ย.
พ.ค.
ม.ย.
ก.ค.
ส.ค.
ก.ย.
ต.ค.
พ.ย.
ธ.ค.

🎀 Quarters 🎀

Wide (format)

quarters 1 through 4, spelled all the way out 👑

ไตรมาส 1
ไตรมาส 2
ไตรมาส 3
ไตรมาส 4

Abbreviated (format)

same energy, same strings, we're consistent over here ✨

ไตรมาส 1
ไตรมาส 2
ไตรมาส 3
ไตรมาส 4

Narrow (format)

just the digits, minimalist icon behavior 🧚

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 ⭐

Wide (format)

ปกอนครสตกาล
ครสตศกราช

Abbreviated (format)

กอน ค.ศ.
ค.ศ.

Narrow (format)

กอน ค.ศ.
ค.ศ.

💜 Date Formats 💜

three timestamps get run through every format, bestie, and they stay the same the whole way down the page: 2008-02-05T18:30:30, 1995-12-22T09:05:02, and -0010-09-15T04:44:23. memorize them, they're the main characters 👑

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 🌈

Full

2008-02-05T18:30:30 = 18 นาฬกา 30 นาที 30 วนาที UTC
1995-12-22T09:05:02 = 9 นาฬกา 05 นาที 02 วนาที UTC
-0010-09-15T04:44:23 = 4 นาฬกา 44 นาที 23 วนาที UTC

Long

no cap, Long and Full are literally twinning here 🔥

2008-02-05T18:30:30 = 18 นาฬกา 30 นาที 30 วนาที UTC
1995-12-22T09:05:02 = 9 นาฬกา 05 นาที 02 วนาที UTC
-0010-09-15T04:44:23 = 4 นาฬกา 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 = วนองคารท่ 5 กมภาพนธ์ ค.ศ. 2008 18 นาฬกา 30 นาที 30 วนาที UTC
1995-12-22T09:05:02 = วนศกรท่ 22 ธนวาคม ค.ศ. 1995 9 นาฬกา 05 นาที 02 วนาที UTC
-0010-09-15T04:44:23 = วนเสารท่ 15 กนยายน กอน ค.ศ. -10 4 นาฬกา 44 นาที 23 วนาที UTC

Long

2008-02-05T18:30:30 = 5 กมภาพนธ์ ค.ศ. 2008 18 นาฬกา 30 นาที 30 วนาที UTC
1995-12-22T09:05:02 = 22 ธันวาคม ค.ศ. 1995 9 นาฬกา 05 นาที 02 วนาที UTC
-0010-09-15T04:44:23 = 15 กนยายน กอน ค.ศ. -10 4 นาฬกา 44 นาที 23 วนาที UTC
wait, bestie, look closely at the 1995 line — it says ธันวาคม here, not ธนวาคม like the other sections. that's genuinely what the page says, so it stays 💀 don't you dare "fix" it.

Medium

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

Short

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

👑 Available Formats 👑

these are the named format patterns, bestie — the thing in parentheses is the actual pattern string, and those are literal, so I'm keeping them exactly as written 🎀

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 = อ.
1995-12-22T09:05:02 = ศ.
-0010-09-15T04:44:23 = ส.

EBhm (E 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 (E 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 (E HH:mm น.)

2008-02-05T18:30:30 = อ. 18:30 น.
1995-12-22T09:05:02 = ศ. 09:05 น.
-0010-09-15T04:44:23 = ส. 04:44 น.

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

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

Ehm (E 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 (E 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 (G y)

2008-02-05T18:30:30 = ค.ศ. 2008
1995-12-22T09:05:02 = ค.ศ. 1995
-0010-09-15T04:44:23 = กอน ค.ศ. -10

GyMMM (MMM G y)

2008-02-05T18:30:30 = ก.พ. ค.ศ. 2008
1995-12-22T09:05:02 = ธ.ค. ค.ศ. 1995
-0010-09-15T04:44:23 = ก.ย. กอน ค.ศ. -10

GyMMMEEEEd (EEEEท่ d MMM G y)

2008-02-05T18:30:30 = วนองคารท่ 5 ก.พ. ค.ศ. 2008
1995-12-22T09:05:02 = วนศกรท่ 22 ธ.ค. ค.ศ. 1995
-0010-09-15T04:44:23 = วนเสารท่ 15 ก.ย. กอน ค.ศ. -10

GyMMMEd (E d MMM G y)

2008-02-05T18:30:30 = อ. 5 ก.พ. ค.ศ. 2008
1995-12-22T09:05:02 = ศ. 22 ธ.ค. ค.ศ. 1995
-0010-09-15T04:44:23 = ส. 15 ก.ย. กอน ค.ศ. -10

GyMMMd (d MMM G y)

2008-02-05T18:30:30 = 5 ก.พ. ค.ศ. 2008
1995-12-22T09:05:02 = 22 ธ.ค. ค.ศ. 1995
-0010-09-15T04:44:23 = 15 ก.ย. กอน ค.ศ. -10

GyMd (d/M/GGGGG 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

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 d/M)

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

MMM (LLL)

2008-02-05T18:30:30 = ก.พ.
1995-12-22T09:05:02 = ธ.ค.
-0010-09-15T04:44:23 = ก.ย.

MMMEEEEd (EEEEท่ d MMM)

2008-02-05T18:30:30 = วนองคารท่ 5 ก.พ.
1995-12-22T09:05:02 = วนศกรท่ 22 ธ.ค.
-0010-09-15T04:44:23 = วนเสารท่ 15 ก.ย.

MMMEd (E d MMM)

2008-02-05T18:30:30 = อ. 5 ก.พ.
1995-12-22T09:05:02 = ศ. 22 ธ.ค.
-0010-09-15T04:44:23 = ส. 15 ก.ย.

MMMMEEEEd (EEEEท่ d MMMM)

2008-02-05T18:30:30 = วนองคารท่ 5 กมภาพนธ์
1995-12-22T09:05:02 = วนศกรท่ 22 ธนวาคม
-0010-09-15T04:44:23 = วนเสารท่ 15 กนยายน

MMMMEd (E d MMMM)

ok so the page cuts off right here — the MMMMEd entries are coming at you in part 2, bestie, don't panic 🫶💖

okay continuing the pattern parade bestie, we're deep in the format list now, stay with me 💅

MMMMW-count-other (สปดาหท่ W ของเดอนMMMM)

the week-of-the-month one, spelled all the way out 🌸

2008-02-05T18:30:30 = สปดาหท่ 1 ของเดอนกมภาพนธ์
1995-12-22T09:05:02 = สปดาหท่ 3 ของเดอนธนวาคม
-0010-09-15T04:44:23 = สปดาหท่ 2 ของเดอนกนยายน

MMMMd (d MMMM)

day then the full month name, no year, living in the moment ✨

2008-02-05T18:30:30 = 5 กมภาพันธ์
1995-12-22T09:05:02 = 22 ธนวาคม
-0010-09-15T04:44:23 = 15 กนยายน

MMMd (d MMM)

same vibe but the month got abbreviated, she's in a hurry 🎀

2008-02-05T18:30:30 = 5 ก.พ.
1995-12-22T09:05:02 = 22 ธ.ค.
-0010-09-15T04:44:23 = 15 ก.ย.

Md (d/M)

just day slash month, tiny and iconic 🦋

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

d (d)

literally just the day. minimalism ate 💅

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

h (h a)

hour plus AM/PM, no minutes, she's mysterious 😭

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)

hour and minute with the AM/PM garnish 🔥

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)

now we got seconds, full clock package deal ⭐

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)

same as above but it also tells you the zone, UTC, because context is everything 🫶

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)

this one has that little น. in the middle, plus the zone 💜

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

mmss (mm:ss)

minute colon second, zero-padded, clocking in 🕐 no wait, clocking minutes

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

ms (mm:ss)

identical sample output to mmss above, iykyk 🍓

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

y (y)

just the year. yes it can go negative, look at that third line 💀

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

yM (M/y)

month slash year, month first, she's got her own order 😌

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

yMEd (E d/M/y)

weekday abbreviation, then day slash month slash year — the whole squad 🌈

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 (MMM y)

short month then year, snappy 🎀

2008-02-05T18:30:30 = ก.พ. 2008
1995-12-22T09:05:02 = ธ.ค. 1995
-0010-09-15T04:44:23 = ก.ย. -10

yMMMEEEEd (EEEEท่ d MMM y)

okay this one is giving full weekday-name moment, with the little ท่ glued on 🔥

2008-02-05T18:30:30 = วนองคารท่ 5 ก.พ. 2008
1995-12-22T09:05:02 = วนศกรท่ 22 ธ.ค. 1995
-0010-09-15T04:44:23 = วนเสารท่ 15 ก.ย. -10

yMMMEd (E d MMM y)

short weekday instead of the long one, same short month 🦋

2008-02-05T18:30:30 = อ. 5 ก.พ. 2008
1995-12-22T09:05:02 = ศ. 22 ธ.ค. 1995
-0010-09-15T04:44:23 = ส. 15 ก.ย. -10

yMMMM (MMMM y)

full month name, then year, no day at all ✨

2008-02-05T18:30:30 = กมภาพนธ์ 2008
1995-12-22T09:05:02 = ธนวาคม 1995
-0010-09-15T04:44:23 = กนยายน -10

yMMMMEEEEd (EEEEท่ d MMMM y)

the full fancy one, long weekday + long month, absolutely main character 👑

2008-02-05T18:30:30 = วนองคารท่ 5 กมภาพันธ์ 2008
1995-12-22T09:05:02 = วนศกรท่ 22 ธนวาคม 1995
-0010-09-15T04:44:23 = วนเสารท่ 15 กนยายน -10

yMMMMEd (E d MMMM y)

long month, short weekday, chef's kiss combo 💖

2008-02-05T18:30:30 = อ. 5 กมภาพันธ์ 2008
1995-12-22T09:05:02 = ศ. 22 ธนวาคม 1995
-0010-09-15T04:44:23 = ส. 15 กนยายน -10

yMMMMd (d MMMM y)

day + full month + year, the classic glow-up 🌸

2008-02-05T18:30:30 = 5 กมภาพันธ์ 2008
1995-12-22T09:05:02 = 22 ธันวาคม 1995
-0010-09-15T04:44:23 = 15 กนยายน -10

yMMMd (d MMM y)

same but the month got shortened, efficiency queen 💅

2008-02-05T18:30:30 = 5 ก.พ. 2008
1995-12-22T09:05:02 = 22 ธ.ค. 1995
-0010-09-15T04:44:23 = 15 ก.ย. -10

yMd (d/M/y)

all numbers, all slashes, no notes 🎀

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 time!! ไตรมาส means quarter, and yes the year rides along 🙈

2008-02-05T18:30:30 = ไตรมาส 1 2008
1995-12-22T09:05:02 = ไตรมาส 4 1995
-0010-09-15T04:44:23 = ไตรมาส 3 -10

yQQQQ (QQQQ G y)

the long quarter form, and it drags the era (G) into the chat too 😭

2008-02-05T18:30:30 = ไตรมาส 1 ค.ศ. 2008
1995-12-22T09:05:02 = ไตรมาส 4 ค.ศ. 1995
-0010-09-15T04:44:23 = ไตรมาส 3 กอน ค.ศ. -10

yw-count-other (สปดาหท่ w ของปี Y)

week of the year, fully spelled out, and look at line 3 doing negative years with zero drama 💀

2008-02-05T18:30:30 = สปดาหท่ 6 ของปี 2008
1995-12-22T09:05:02 = สปดาหท่ 51 ของปี 1995
-0010-09-15T04:44:23 = สปดาหท่ 37 ของปี -10

🌸 Miscellaneous 🌸

couple of quick facts, rapid fire bestie:

  • Prefers 24 hour time? Yes ⏰
  • Local first day of the week: 7 (วนอาทตย)

⭐ Strftime Patterns ⭐

now we're in the strftime zone, the old-school legends, and they're all here with their samples 🔥

%c (%a %e %b %Ey, %H:%M:%S) — date time format

the big date-time combo. watch that %Ey just sitting there being all era-ish, and note the double space after อ. on the first line, it's real, don't touch it 🫶

2008-02-05T18:30:30 = อ.  5 ก.พ. %Ey, 18:30:30
1995-12-22T09:05:02 = ศ. 22 ธ.ค. %Ey, 09:05:02
-0010-09-15T04:44:23 = ส. 15 ก.ย. %Ey, 04:44:23

%x (%d/%m/%Ey) — date format

day slash month, then %Ey doing its thing instead of the plain year 🌈

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

%X (%H:%M:%S) — time format

24-hour clock, colon colon, no AM/PM invited 💅

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, she's lowkey mysterious like that ✨


and that's the whole page bestie, you made it!! 🎉 this was perl v5.42.0 dropping it on 2024-12-12, page DateTim...e::th_TH(3) — go forth and format Thai dates with main character energy, no cap 💜🫶

📦 where this page comes from