DateTim...ale::tn(3)
β¨ NAME β¨
okay so bestie, this is the User Contributed Perl Documentation page for DateTim...ale::tn(3) β aka the locale-data examples page for DateTime::Locale::tn, the Tswana (tn) locale. Itβs giving reference material, and weβre gonna get through it together. π
πΈ DESCRIPTION πΈ
This pod file contains examples of the locale data available for the Tswana locale. no cap, thatβs the whole assignment: examples of the locale data, laid out section by section.
ποΈ Days
Wide (format)
Mosupologo
Labobedi
Laboraro
Labone
Labotlhano
Matlhatso
Tshipi
Abbreviated (format)
Mos
Labb
Labr
Labn
Labt
Mat
Tsh
Narrow (format)
M
T
W
T
F
S
S
Wide (stand-alone)
Mosupologo
Labobedi
Laboraro
Labone
Labotlhano
Matlhatso
Tshipi
Abbreviated (stand-alone)
Mos
Labb
Labr
Labn
Labt
Mat
Tsh
Narrow (stand-alone)
M
T
W
T
F
S
S
π¦ Months
Wide (format)
Ferikgong
Tlhakole
Mopitlo
Moranang
Motsheganang
Seetebosigo
Phukwi
Phatwe
Lwetse
Diphalane
Ngwanatsele
Sedimonthole
Abbreviated (format)
Fer
Tlh
Mop
Mor
Mot
See
Phu
Pha
Lwe
Dip
Ngw
Sed
Narrow (format)
1
2
3
4
5
6
7
8
9
10
11
12
Wide (stand-alone)
Ferikgong
Tlhakole
Mopitlo
Moranang
Motsheganang
Seetebosigo
Phukwi
Phatwe
Lwetse
Diphalane
Ngwanatsele
Sedimonthole
Abbreviated (stand-alone)
Fer
Tlh
Mop
Mor
Mot
See
Phu
Pha
Lwe
Dip
Ngw
Sed
Narrow (stand-alone)
1
2
3
4
5
6
7
8
9
10
11
12
π Quarters
Wide (format)
Sephatlho sa ntlha sa ngwaga
Sephatlho sa bobedi
Sephatlho sa boraro
Sephatlho sa bone
Abbreviated (format)
Q1
Q2
Q3
Q4
Narrow (format)
1
2
3
4
Wide (stand-alone)
Sephatlho sa ntlha sa ngwaga
Sephatlho sa bobedi
Sephatlho sa boraro
Sephatlho sa bone
Abbreviated (stand-alone)
Q1
Q2
Q3
Q4
Narrow (stand-alone)
1
2
3
4
π Eras
Wide (format)
Pele ga tsalo ya Morena Jeso
Morago ga Leso la Morena Jeso
Abbreviated (format)
BC
AD
Narrow (format)
BC
AD
π Date Formats
Full
2008-02-05T18:30:30 = 2008 Tlhakole 5, Labobedi
1995-12-22T09:05:02 = 1995 Sedimonthole 22, Labotlhano
-0010-09-15T04:44:23 = -10 Lwetse 15, Matlhatso
Long
2008-02-05T18:30:30 = 2008 Tlhakole 5
1995-12-22T09:05:02 = 1995 Sedimonthole 22
-0010-09-15T04:44:23 = -10 Lwetse 15
Medium
2008-02-05T18:30:30 = 2008 Tlh 5
1995-12-22T09:05:02 = 1995 Sed 22
-0010-09-15T04:44:23 = -10 Lwe 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
β° 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 = 2008 Tlhakole 5, Labobedi ka 18:30:30 UTC
1995-12-22T09:05:02 = 1995 Sedimonthole 22, Labotlhano ka 09:05:02 UTC
-0010-09-15T04:44:23 = -10 Lwetse 15, Matlhatso ka 04:44:23 UTC
Long
2008-02-05T18:30:30 = 2008 Tlhakole 5 ka 18:30:30 UTC
1995-12-22T09:05:02 = 1995 Sedimonthole 22 ka 09:05:02 UTC
-0010-09-15T04:44:23 = -10 Lwetse 15 ka 04:44:23 UTC
Medium
2008-02-05T18:30:30 = 2008 Tlh 5, 18:30:30
1995-12-22T09:05:02 = 1995 Sed 22, 09:05:02
-0010-09-15T04:44:23 = -10 Lwe 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
π Available Formats π
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 = Labb
1995-12-22T09:05:02 = Labt
-0010-09-15T04:44:23 = Mat
EBhm (E h:mm B)
2008-02-05T18:30:30 = Labb 6:30 B
1995-12-22T09:05:02 = Labt 9:05 B
-0010-09-15T04:44:23 = Mat 4:44 B
EBhms (E h:mm:ss B)
2008-02-05T18:30:30 = Labb 6:30:30 B
1995-12-22T09:05:02 = Labt 9:05:02 B
-0010-09-15T04:44:23 = Mat 4:44:23 B
EHm (E HH:mm)
2008-02-05T18:30:30 = Labb 18:30
1995-12-22T09:05:02 = Labt 09:05
-0010-09-15T04:44:23 = Mat 04:44
EHms (E HH:mm:ss)
2008-02-05T18:30:30 = Labb 18:30:30
1995-12-22T09:05:02 = Labt 09:05:02
-0010-09-15T04:44:23 = Mat 04:44:23
Ed (d, E)
2008-02-05T18:30:30 = 5, Labb
1995-12-22T09:05:02 = 22, Labt
-0010-09-15T04:44:23 = 15, Mat
Ehm (E h:mm a)
2008-02-05T18:30:30 = Labb 6:30 PM
1995-12-22T09:05:02 = Labt 9:05 AM
-0010-09-15T04:44:23 = Mat 4:44 AM
Ehms (E h:mm:ss a)
2008-02-05T18:30:30 = Labb 6:30:30 PM
1995-12-22T09:05:02 = Labt 9:05:02 AM
-0010-09-15T04:44:23 = Mat 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 Tlh
1995-12-22T09:05:02 = AD 1995 Sed
-0010-09-15T04:44:23 = BC -10 Lwe
GyMMMEd (G y MMM d, E)
2008-02-05T18:30:30 = AD 2008 Tlh 5, Labb
1995-12-22T09:05:02 = AD 1995 Sed 22, Labt
-0010-09-15T04:44:23 = BC -10 Lwe 15, Mat
GyMMMd (G y MMM d)
2008-02-05T18:30:30 = AD 2008 Tlh 5
1995-12-22T09:05:02 = AD 1995 Sed 22
-0010-09-15T04:44:23 = BC -10 Lwe 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 (MM-dd, E)
2008-02-05T18:30:30 = 02-05, Labb
1995-12-22T09:05:02 = 12-22, Labt
-0010-09-15T04:44:23 = 09-15, Mat
MMM (LLL)
2008-02-05T18:30:30 = Tlh
1995-12-22T09:05:02 = Sed
-0010-09-15T04:44:23 = Lwe
MMMEd (MMM d, E)
2008-02-05T18:30:30 = Tlh 5, Labb
1995-12-22T09:05:02 = Sed 22, Labt
-0010-09-15T04:44:23 = Lwe 15, Mat
MMMMW-count-one ('beke' 'ya' W 'ya' MMM)
2008-02-05T18:30:30 = beke ya 1 ya Tlh
1995-12-22T09:05:02 = beke ya 3 ya Sed
-0010-09-15T04:44:23 = beke ya 2 ya Lwe
MMMMW-count-other ('beke' 'ya' W 'ya' MMM)
2008-02-05T18:30:30 = beke ya 1 ya Tlh
1995-12-22T09:05:02 = beke ya 3 ya Sed
-0010-09-15T04:44:23 = beke ya 2 ya Lwe
MMMMd (MMMM d)
2008-02-05T18:30:30 = Tlhakole 5
1995-12-22T09:05:02 = Sedimonthole 22
-0010-09-15T04:44:23 = Lwetse 15
MMMd (MMM d)
2008-02-05T18:30:30 = Tlh 5
1995-12-22T09:05:02 = Sed 22
-0010-09-15T04:44:23 = Lwe 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, Labb
1995-12-22T09:05:02 = 1995-12-22, Labt
-0010-09-15T04:44:23 = -10-09-15, Mat
yMMM (y MMM)
2008-02-05T18:30:30 = 2008 Tlh
1995-12-22T09:05:02 = 1995 Sed
-0010-09-15T04:44:23 = -10 Lwe
yMMMEd (y MMM d, E)
2008-02-05T18:30:30 = 2008 Tlh 5, Labb
1995-12-22T09:05:02 = 1995 Sed 22, Labt
-0010-09-15T04:44:23 = -10 Lwe 15, Mat
yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 Tlhakole
1995-12-22T09:05:02 = 1995 Sedimonthole
-0010-09-15T04:44:23 = -10 Lwetse
yMMMd (y MMM d)
2008-02-05T18:30:30 = 2008 Tlh 5
1995-12-22T09:05:02 = 1995 Sed 22
-0010-09-15T04:44:23 = -10 Lwe 15
yMd (y-MM-dd)
β¦and we're right back in it π β the last three examples of the pattern above, still doing their little three-timestamp parade:
2008-02-05T18:30:30 = 2008-02-05
1995-12-22T09:05:02 = 1995-12-22
-0010-09-15T04:44:23 = -10-09-15
Same three test timestamps for everything below, bestie β 2008-02-05T18:30:30, 1995-12-22T09:05:02 and the icon that is -0010-09-15T04:44:23 (yes the year is literally negative, she's built different π). Pattern in, formatted string out, every single time.
yQQQ (y QQQ)
The short quarter flex β just the year and a Q number, no thoughts, head empty:
2008-02-05T18:30:30 = 2008 Q1
1995-12-22T09:05:02 = 1995 Q4
-0010-09-15T04:44:23 = -10 Q3
yQQQQ (y QQQQQ)
And the long-form quarter, which is where this locale absolutely ate β the quarters get spelled all the way out:
2008-02-05T18:30:30 = 2008 Sephatlho sa ntlha sa ngwaga
1995-12-22T09:05:02 = 1995 Sephatlho sa bone
-0010-09-15T04:44:23 = -10 Sephatlho sa boraro
yw-count-one ('beke' w 'ya' Y)
Week-of-year, singular-count flavour. Note the pattern actually carries the literal word 'beke' and 'ya' around the w and Y π:
2008-02-05T18:30:30 = beke 6 ya 2008
1995-12-22T09:05:02 = beke 51 ya 1995
-0010-09-15T04:44:23 = beke 37 ya -10
yw-count-other ('beke' w 'ya' Y)
Plural-count flavour. Same pattern string, same output here β the two counts just happen to line up in this locale, no cap:
2008-02-05T18:30:30 = beke 6 ya 2008
1995-12-22T09:05:02 = beke 51 ya 1995
-0010-09-15T04:44:23 = beke 37 ya -10
β¨ Miscellaneous β¨
The little settings that quietly run the whole show π
- Prefers 24 hour time? β Yes. She's β¨culturedβ¨, no AM/PM chaos here.
- Local first day of the week β
1(Mosupologo).
π°οΈ Strftime Patterns π°οΈ
The classic strftime-style shortcuts, but dressed in this locale's outfit π
πΈ %c (%a %b %e %H:%M:%S %Y) - date time format
The full date-and-time combo:
2008-02-05T18:30:30 = Labb Tlh 5 18:30:30 2008
1995-12-22T09:05:02 = Labt Sed 22 09:05:02 1995
-0010-09-15T04:44:23 = Mat Lwe 15 04:44:23 -10
Ok lowkey look at the first line β there are two spaces betweenTlhand5. That's the%eday-of-month field padding, and it's exactly what the page says, so it stays exactly what this page says π
π¦ %x (%m/%d/%y) - date format
Date only, short year, slashes slashing:
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
Time only, 24-hour, chef's kiss:
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 π
Where do you go when you need more? Literally just:
See DateTime::Locale.
That's the whole support section, bestie. All the deep lore lives over there π«Ά
and that's the whole page!! ily, go format some timestamps πβ¨
This beauty is from the perl v5.42.0 toolchain, dated 2024-12-12 (the page footer calls it DateTim...ale::tn(3) β you know her, you love her π).
π¦ where this page comes from
- opensuse-leap 16.0: perl-DateTime-Locale 1.440000-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms