DateTim...ale::lg(3)

πŸ’– DateTime::Locale::lg(3) πŸ’–

okay bestie, welcome to the DateTime::Locale::lg glow-up ✨ this is a page from the User Contributed Perl Documentation and it's basically a whole photo album of locale data β€” every example value your girl could ever need, no cap. Date, time, month names, day names, quarters, eras, the whole aesthetic. Let's get into it πŸ’…


🌸 NAME 🌸

DateTime::Locale::lg β€” locale data examples for the Ganda (lg) locale. That's it, that's the name, and yes the manpage header totally calls it DateTime::Locale::lg(3) too πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

This pod file contains examples of the locale data available for the Ganda locale.

That's the official tea β˜• and everything below is the receipts: every format, every pattern, every sample timestamp, laid out so you can see exactly what the Ganda locale does. Obsessed, honestly πŸ’œ


✨ Days ✨

Wide (format)

the full-length day names, glamorous and unhurried 🧚

Balaza
Lwakubiri
Lwakusatu
Lwakuna
Lwakutaano
Lwamukaaga
Sabbiiti

Abbreviated (format)

shortened versions, still cute, still on brand ✨

Bal
Lw2
Lw3
Lw4
Lw5
Lw6
Sab

Narrow (format)

single letters only, minimalism is the moment πŸŽ€

B
L
L
L
L
L
S

Wide (stand-alone)

same wide names, but chilling on their own β€” no format context needed πŸ’…

Balaza
Lwakubiri
Lwakusatu
Lwakuna
Lwakutaano
Lwamukaaga
Sabbiiti

Abbreviated (stand-alone)

the abbreviations, standing alone, living their best life πŸ¦‹

Bal
Lw2
Lw3
Lw4
Lw5
Lw6
Sab

Narrow (stand-alone)

the tiny letters, also standing alone, also iconic 🌸

B
L
L
L
L
L
S

πŸ’– Months πŸ’–

Wide (format)

the full month names β€” say them out loud, they're gorgeous 🫢

Janwaliyo
Febwaliyo
Marisi
Apuli
Maayi
Juuni
Julaayi
Agusito
Sebutemba
Okitobba
Novemba
Desemba

Abbreviated (format)

three letters and out the door, efficient queen behavior πŸ‘‘

Jan
Feb
Mar
Apu
Maa
Juu
Jul
Agu
Seb
Oki
Nov
Des

Narrow (format)

one letter each, maximum mystery, some of them literally repeat and that's fine πŸ’€

J
F
M
A
M
J
J
A
S
O
N
D

Wide (stand-alone)

full month names, stand-alone edition 🌈

Janwaliyo
Febwaliyo
Marisi
Apuli
Maayi
Juuni
Julaayi
Agusito
Sebutemba
Okitobba
Novemba
Desemba

Abbreviated (stand-alone)

yeah they're identical to the format ones, no cap, I'm not hiding anything πŸ’œ

Jan
Feb
Mar
Apu
Maa
Juu
Jul
Agu
Seb
Oki
Nov
Des

Narrow (stand-alone)

same one-letter energy, still valid, still serving ⭐

J
F
M
A
M
J
J
A
S
O
N
D

πŸŽ€ Quarters πŸŽ€

Wide (format)

Kyakuna means quarter β€” so these are literally quarter 1 through quarter 4, spelled all the way out πŸ’…

Kyakuna 1
Kyakuna 2
Kyakuna 3
Kyakuna 4

Abbreviated (format)

Kya plus the digit, and we move on ✨

Kya1
Kya2
Kya3
Kya4

Narrow (format)

just the number. zero notes. πŸ¦‹

1
2
3
4

Wide (stand-alone)

wide quarter names, standing alone, unbothered 🌸

Kyakuna 1
Kyakuna 2
Kyakuna 3
Kyakuna 4

Abbreviated (stand-alone)

abbreviated and stand-alone, the combo meal πŸ“

Kya1
Kya2
Kya3
Kya4

Narrow (stand-alone)

digits, alone, thriving πŸ’–

1
2
3
4

🧚 Eras 🧚

Wide (format)

the long-form era names. fun fact: BC and AD below are exactly the same in the wide/abbreviated/narrow format lists for this locale, but the wide text itself is fully spelled out in Ganda πŸ”₯

Kulisito nga tannaza
Bukya Kulisito Azaal

Abbreviated (format)

BC
AD

Narrow (format)

BC
AD
heads up bestie: the original lists eras under format only β€” there's no stand-alone era block on this page, so don't come for me 😭

πŸ’€ Date Formats πŸ’€

Full

the maximalist date. day name AND full month AND year, we're doing the most and it's working ✨

2008-02-05T18:30:30 = Lwakubiri, 5 Febwaliyo 2008
1995-12-22T09:05:02 = Lwakutaano, 22 Desemba 1995
-0010-09-15T04:44:23 = Lwamukaaga, 15 Sebuttemba -10

Long

day name said bye, full month stayed πŸŽ€

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

Medium

and now the month is abbreviating, we love a subtle downgrade πŸ’…

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

Short

all numbers, no vibes, just facts 🌸

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

⭐ Time Formats ⭐

Full

UTC is riding along for the whole trip πŸ¦‹

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

identical output to Full here β€” no drama, that's just how it renders πŸ’–

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

seconds stay, the timezone said see ya 🧚

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

down to hours and minutes, minimal, gorgeous ✨

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

πŸ‘‘ Datetime Formats πŸ‘‘

Full

date AND time, all the way wide, this is the main character format πŸ’…

2008-02-05T18:30:30 = Lwakubiri, 5 Febwaliyo 2008 18:30:30 UTC
1995-12-22T09:05:02 = Lwakutaano, 22 Desemba 1995 09:05:02 UTC
-0010-09-15T04:44:23 = Lwamukaaga, 15 Sebuttemba -10 04:44:23 UTC

Long

day name left the chat, everything else stayed 😭

2008-02-05T18:30:30 = 5 Febwaliyo 2008 18:30:30 UTC
1995-12-22T09:05:02 = 22 Desemba 1995 09:05:02 UTC
-0010-09-15T04:44:23 = 15 Sebuttemba -10 04:44:23 UTC

Medium

month abbreviates, timezone dips, still cute 🌸

2008-02-05T18:30:30 = 5 Feb 2008 18:30:30
1995-12-22T09:05:02 = 22 Des 1995 09:05:02
-0010-09-15T04:44:23 = 15 Seb -10 04:44:23

Short

numbers only, zero mercy, very efficient πŸŽ€

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

🌈 Available Formats 🌈

okay this is the big one, the whole menu 🫢 each format has a name, its pattern in parentheses, and three worked examples using the same three timestamps every time: 2008-02-05T18:30:30, 1995-12-22T09:05:02, and -0010-09-15T04:44:23. 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 = Lw2
1995-12-22T09:05:02 = Lw5
-0010-09-15T04:44:23 = Lw6

EBhm (E h:mm B)

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

EBhms (E h:mm:ss B)

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

EHm (E HH:mm)

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

EHms (E HH:mm:ss)

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

Ed (d, E)

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

Ehm (E h:mm a)

2008-02-05T18:30:30 = Lw2 6:30 PM
1995-12-22T09:05:02 = Lw5 9:05 AM
-0010-09-15T04:44:23 = Lw6 4:44 AM

Ehms (E h:mm:ss a)

2008-02-05T18:30:30 = Lw2 6:30:30 PM
1995-12-22T09:05:02 = Lw5 9:05:02 AM
-0010-09-15T04:44:23 = Lw6 4:44:23 AM

Gy (G y)

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

GyMMM (G y MMM)

2008-02-05T18:30:30 = AD 2008 Feb
1995-12-22T09:05:02 = AD 1995 Des
-0010-09-15T04:44:23 = BC -10 Seb

GyMMMEd (G y MMM d, E)

2008-02-05T18:30:30 = AD 2008 Feb 5, Lw2
1995-12-22T09:05:02 = AD 1995 Des 22, Lw5
-0010-09-15T04:44:23 = BC -10 Seb 15, Lw6

GyMMMd (G y MMM d)

2008-02-05T18:30:30 = AD 2008 Feb 5
1995-12-22T09:05:02 = AD 1995 Des 22
-0010-09-15T04:44:23 = BC -10 Seb 15

GyMd (GGGGG y-MM-dd)

2008-02-05T18:30:30 = AD 2008-02-05
1995-12-22T09:05:02 = AD 1995-12-22
-0010-09-15T04:44:23 = BC -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 (E, M/d)

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

MMM (LLL)

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

MMMEd (E, MMM d)

2008-02-05T18:30:30 = Lw2, Feb 5
1995-12-22T09:05:02 = Lw5, Des 22
-0010-09-15T04:44:23 = Lw6, Seb 15

MMMMEd (E, MMMM d)

2008-02-05T18:30:30 = Lw2, Febwaliyo 5
1995-12-22T09:05:02 = Lw5, Desemba 22
-0010-09-15T04:44:23 = Lw6, Sebuttemba 15

MMMMW-count-other ('week' W 'of' MMMM)

2008-02-05T18:30:30 = week 1 of Febwaliyo
1995-12-22T09:05:02 = week 3 of Desemba
-0010-09-15T04:44:23 = week 2 of Sebuttemba
note the literal quotes in that pattern, bestie β€” 'week' and 'of' are quoted text in the pattern itself, not my editorializing πŸ’€

MMMMd (MMMM d)

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

MMMd (MMM d)

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

Md (M/d)

2008-02-05T18:30:30 = 2/5
1995-12-22T09:05:02 = 12/22
-0010-09-15T04:44:23 = 9/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 (M/y)

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

yMEd (E, M/d/y)

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

yMMM (MMM y)

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

yMMMEd (E, MMM d, y)

2008-02-05T18:30:30 = Lw2, Feb 5, 2008
1995-12-22T09:05:02 = Lw5, Des 22, 1995
-0010-09-15T04:44:23 = Lw6, Seb 15, -10

yMMMM (MMMM y)

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

yMMMd (y MMM d)

2008-02-05T18:30:30 = 2008 Feb 5
1995-12-22T09:05:02 = 1995 Des 22
-0010-09-15T04:44:23 = -10 Seb 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 (QQQ y)

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

yQQQQ (QQQQ y)

…and the last of that run lands like this, bestie:

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

yw-count-other β€” pattern <italic>'week' w 'of' Y</italic>, and it's giving very "what week are we in, queen" energy:

          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 πŸŽ€

Two lil quick facts about this locale, and yes they're both main characters:

  • Prefers 24 hour time? Yes πŸ’… no confusing am/pm nonsense here, we're clocking it straight.
  • Local first day of the week 1 (Balaza) β€” bestie starts the week on 1, and 1 is Balaza πŸ—“οΈβœ¨

🌸 Strftime Patterns 🌸

okay this is the part where the locale gets to flex its built-in date formats 🫢 these are the classic strftime shortcuts, already pre-styled for you:

πŸ¦‹ %c (%a %b %e %H:%M:%S %Y) β€” date time format

the full date-and-time combo meal πŸ“:

          2008-02-05T18:30:30 = Lw2 Feb  5 18:30:30 2008
          1995-12-22T09:05:02 = Lw5 Des 22 09:05:02 1995
         -0010-09-15T04:44:23 = Lw6 Seb 15 04:44:23 -10

(notice Feb is Feb but December is Des and September is Seb β€” iconic, no notes 😌)

πŸŽ€ %x (%m/%d/%y) β€” date format

just the date, cute and short, month first:

          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

just the time, 24 hour, zero drama:

          2008-02-05T18:30:30 = 18:30:30
          1995-12-22T09:05:02 = 09:05:02
         -0010-09-15T04:44:23 = 04:44:23
lowkey notice how -0010-09-15T04:44:23 keeps printing as 09/15/10 and -10 at the end of the %c line 😭 that's just how the year renders here, bestie, don't @ me.

🫢 SUPPORT 🫢

Need more? Go see DateTime::Locale, fr fr β€” that's the one πŸ‘‘πŸ’œ


and that's the whole page, bestie, we ate πŸ“βœ¨ this one's from perl v5.42.0, dated 2024-12-12 β€” go forth and format dates beautifully, mwah πŸ’…πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from