DateTim...e::en_GB(3)

bestie, you're looking at DateTime::Locale::en_GB β€” yes, the DateTim...e::en_GB(3) page from the User Contributed Perl Documentation πŸ’…. It's literally locale data examples for the English United Kingdom (en-GB) locale, and it's giving reference-material excellence ✨.

πŸ’– NAME πŸ’–

DateTime::Locale::en_GB β€” locale data examples for the English United Kingdom (en-GB) locale 🫢

✨ DESCRIPTION ✨

okay so this pod file contains examples of the locale data available for the English United Kingdom locale. No cap, it's a whole buffet of en-GB date and time formatting πŸ“.

🌸 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

πŸŒ™ 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

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

πŸ“… 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

⏰ 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 = Tuesday, 5 February 2008, 18:30:30 UTC
1995-12-22T09:05:02 = Friday, 22 December 1995, 09:05:02 UTC
-0010-09-15T04:44:23 = Saturday, 15 September -10, 04:44:23 UTC

Long πŸ¦‹

2008-02-05T18:30:30 = 5 February 2008, 18:30:30 UTC
1995-12-22T09:05:02 = 22 December 1995, 09:05:02 UTC
-0010-09-15T04:44:23 = 15 September -10, 04:44:23 UTC

Medium 🌸

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

Short ⭐

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 πŸ‘‘

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

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

GyMMMEEEEd (EEEE, d MMM y G) πŸ’œ

2008-02-05T18:30:30 = Tuesday, 5 Feb 2008 AD
1995-12-22T09:05:02 = Friday, 22 Dec 1995 AD
-0010-09-15T04:44:23 = Saturday, 15 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 (dd/MM/y G) πŸ¦‹

2008-02-05T18:30:30 = 05/02/2008 AD
1995-12-22T09:05:02 = 22/12/1995 AD
-0010-09-15T04:44:23 = 15/09/-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

MMMEEEEd (EEEE d MMM) ⭐

2008-02-05T18:30:30 = Tuesday 5 Feb
1995-12-22T09:05:02 = Friday 22 Dec
-0010-09-15T04:44:23 = Saturday 15 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

MMMMEEEEd (EEEE d MMMM) πŸ’–

2008-02-05T18:30:30 = Tuesday 5 February
1995-12-22T09:05:02 = Friday 22 December
-0010-09-15T04:44:23 = Saturday 15 September

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

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)

hmv-alt-ascii (h:mm a v)

bestie this one is the ascii-only twin of the hour/minute vibe β€” 12-hour clock, am/pm in lowercase, plus the timezone name πŸ’…

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)

literally just minutes and seconds, no thoughts head empty 🫢

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

y (y)

the year. that's it. that's the whole format πŸŽ€

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

yM (MM/y)

month-then-year, all slashed up ✨

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)

day name first, then the numeric date in all its dd/MM/y glory πŸ’–

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)

abbreviated month + year, short and slay 🌸

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

yMMMEEEEd (EEEE, d MMM y)

the full-day-name flex, abbreviated month, no leading zero on the day β€” very main character energy πŸ‘‘

2008-02-05T18:30:30 = Tuesday, 5 Feb 2008
1995-12-22T09:05:02 = Friday, 22 Dec 1995
-0010-09-15T04:44:23 = Saturday, 15 Sept -10

yMMMEd (E, d MMM y)

same vibe as above but the day name gets abbreviated, okurrr πŸ¦‹

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)

full month name, no abbreviations, we're fancy now πŸ’œ

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

yMMMMEEEEd (EEEE, d MMMM y)

maximum typography: full day name, full month name, the works 😭✨

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

yMMMd (d MMM y)

day first, abbreviated month, year last β€” the lowkey classic πŸ“

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)

numbers only bestie, day then month then year 🌈

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, abbreviated πŸ’€

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

yQQQQ (QQQQ y)

the full 1st / 4th / 3rd quarter spelling, because we're being thorough today 🧚

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 (case one) spelled out with the word week and of πŸ’–

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)

and here's the other case β€” identical output, but the locale lists it separately, so it gets its own little spotlight ✨

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

okay these are the little locale quirks that don't fit anywhere else:

  • Prefers 24 hour time? β€” Yes (we're not doing your 12-hour nonsense over here, periodt πŸ’…)
  • Local first day of the week β€” 1 (Monday) β€” yes bestie, the week starts on Monday, as it should πŸ‘‘

⏰ Strftime Patterns ⏰

%c (%a %d %b %Y %T %Z) - date time format

the whole date and the whole time, stitched together with a timezone chaser πŸ”₯

2008-02-05T18:30:30 = Tue 05 Feb 2008 18:30:30 UTC
1995-12-22T09:05:02 = Fri 22 Dec 1995 09:05:02 UTC
-0010-09-15T04:44:23 = Sat 15 Sept -10 04:44:23 UTC

%x (%d/%m/%y) - date format

date only, with that crunchy two-digit year 🌸

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

%X (%T) - time format

time only, and note that it's literally just %T doing the work πŸ¦‹

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 section bestie, go read the real one πŸ˜­πŸ’–


and that's the page!! 🌟 brought to you by perl v5.42.0, dated 2024-12-12 β€” drink some water, go format a timestamp, and remember: en_GB said 24-hour time rights πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from