DateTim...e::en_TO(3)

okay bestie, welcome to DateTime::Locale::en_TO(3) β€” it's from the User Contributed Perl Documentation and it's literally the entire personality of the English Tonga (en-TO) locale, dumped out as examples πŸ’… this is part one of two, so buckle up, we're not even done yet.

🌸 NAME 🌸

DateTime::Locale::en_TO β€” locale data examples for the English Tonga (en-TO) locale. that's it, that's the whole assignment 🫢

✨ DESCRIPTION ✨

this pod file is just, like, a museum of examples showing off all the locale data that's available for the English Tonga locale. every section below is the same data in a different fit β€” format flavor vs stand-alone flavor, wide vs abbreviated vs narrow. it's giving wardrobe montage πŸ’–


πŸ—“οΈ 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

(yes the narrow ones repeat letters, no that's not a typo, that's just how narrow rolls πŸ™ˆ)


πŸŒ™ 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
lowkey obsessed that September gets Sept here instead of Sep. it's four letters and it's living its truth ✨

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

πŸŽ€ 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
eras only get the format flavor here, no stand-alone moment. we respect the choices of the locale data 🫢

πŸ“… 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
day-first ordering, the way the world intended 😌 also that negative year is just out here living its best -10 life.

⏰ 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
Full and Long are literally twins here β€” same energy, no notes πŸ’€ lowercase am/pm throughout, that's the brand.

🌈 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
it's literally just date + time glued together with a , and honestly? slay. compact queen behavior πŸ’…

πŸ¦‹ Available Formats πŸ¦‹

this is the long part bestie, every named format, its pattern in parentheses, and the three example stamps. do not skip, we do NOT skip here.

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
the -alt-ascii versions exist so you get plain-ASCII output β€” same vibe, fewer fancy characters πŸ‘€

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
two count variants, count-one and count-other, and they output identical stuff here. twins fr fr 🫢

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

and that's genuinely where this page cuts off mid-format, bestie β€” y (y) is sitting there with no examples yet because part two is literally waiting in the wings 😭 do NOT panic, we're continuing, hold the vibe πŸ’–

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

yM (MM/y)

bestie it's giving month-then-year, zero-padded month, no notes πŸ’…

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)

weekday first, then day, month, year β€” all stacked in a little row πŸŽ€

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)

the short month name era ✨

2008-02-05T18:30:30 = Feb 2008
1995-12-22T09:05:02 = Dec 1995
-0010-09-15T04:44:23 = Sept -10
ok real talk, see how -10 gets Sept -10 with that short Sept? that's not a typo, that's the locale's short month name doing its thing. do not "fix" it 🫢

yMMMEd (E, d MMM y)

weekday + day + short month + year, the whole little ensemble πŸ‘‘

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)

the FULL month name, no abbreviating, main character energy 🌸

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)

day first this time, then the short month, then the year πŸ¦‹

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)

the classic all-numeric dd/MM/y, no crumbs left behind πŸ’€

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)

quarter o'clock, short version ⭐

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

yQQQQ (QQQQ y)

and the long-form quarter, spelled all the way out πŸŽ€

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)

week-number flex, singular bucket β€” and yes, the output for these samples is identical to the -other one, that's just how it lands here πŸ’œ

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)

same vibe, plural bucket, same outputs for these three 🫢

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

some little locale personality traits, no cap:

  • Prefers 24 hour time? β€” No
  • Local first day of the week β€” 1 (Monday)

🌈 Strftime Patterns

the old-school strftime gang pulled up too, and honestly? iconic 😭

%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
that double space in Tue Feb 5? extremely real, %e is space-padded, leave it be πŸ’…

%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 πŸ’–

go check out DateTime::Locale bestie, that's where the rest of the lore lives πŸ“šβœ¨


and that's the whole page, no crumbs πŸ“ huge slay for making it to the end β€” this one's from perl v5.42.0, dated 2024-12-12, page DateTim...e::en_TO(3). mwah πŸ’‹πŸ’œ

πŸ“¦ where this page comes from