DateTim...ale::rif(3)

✨ DateTime::Locale::rif πŸ’…

okay so bestie, welcome to DateTime::Locale::rif(3) β€” yes it's from the User Contributed Perl Documentation, section 3, and yes it's exactly as chaotic as that sounds. this is the Locale data examples page for the Riffian (rif) locale, and it is long, so strap in. 🌸


πŸŽ€ NAME

DateTime::Locale::rif β€” Locale data examples for the Riffian (rif) locale.

that's the whole name. short, sweet, iconic. πŸ’…

πŸ¦‹ DESCRIPTION

this pod file is literally just the receipts πŸ“œ β€” it's packed with examples of all the locale data you can get for the Riffian locale. days, months, quarters, eras, formats, the whole little buffet. let's get into it. πŸ“


🌈 Days

🌸 Wide (format)

the full-day era. no abbreviations, all main character energy:

Mon
Tue
Wed
Thu
Fri
Sat
Sun

πŸ’œ Abbreviated (format)

okay so... they're the same as the wide ones. that's not a typo on my end, that's just the data being its authentic self:

Mon
Tue
Wed
Thu
Fri
Sat
Sun

πŸ¦‹ Narrow (format)

now we're down to single letters. mysterious. minimal. giving cryptic text from your crush:

M
T
W
T
F
S
S

πŸŽ€ Wide (stand-alone)

same seven besties, but now they're standing on their own (not inside a formatted date string):

Mon
Tue
Wed
Thu
Fri
Sat
Sun

✨ Abbreviated (stand-alone)

again β€” identical to the wide stand-alone ones. consistency is a vibe, honestly:

Mon
Tue
Wed
Thu
Fri
Sat
Sun

πŸ’… Narrow (stand-alone)

the little single letters, standing alone this time:

M
T
W
T
F
S
S

πŸ‘‘ Months

🌸 Wide (format)

okay so the month names here are legit M01 through M12. yes, literally that. and honestly? they ate:

M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12

πŸ’œ Abbreviated (format)

same twelve, same M01-to-M12 energy. no notes:

M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12

πŸ¦‹ Narrow (format)

and now it's just... numbers. 1 through 12. lowkey unhinged, highkey works:

1
2
3
4
5
6
7
8
9
10
11
12

πŸŽ€ Wide (stand-alone)

the M01 girlies, but flying solo this time:

M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12

✨ Abbreviated (stand-alone)

yep β€” M01 through M12, same as above, standing on their own:

M01
M02
M03
M04
M05
M06
M07
M08
M09
M10
M11
M12

πŸ’… Narrow (stand-alone)

1 to 12, no notes, periodt:

1
2
3
4
5
6
7
8
9
10
11
12

⭐ Quarters

🌸 Wide (format)

four quarters, four slays:

Q1
Q2
Q3
Q4

πŸ’œ Abbreviated (format)

identical. Q1 to Q4. the data said "if it ain't broke":

Q1
Q2
Q3
Q4

πŸ¦‹ Narrow (format)

narrow mode strips them down to plain digits:

1
2
3
4

πŸŽ€ Wide (stand-alone)

the wide quarters, alone and thriving:

Q1
Q2
Q3
Q4

✨ Abbreviated (stand-alone)

Q1 to Q4. again. iconic behaviour:

Q1
Q2
Q3
Q4

πŸ’… Narrow (stand-alone)

just 1 2 3 4, standing by themselves:

1
2
3
4
heads up bestie β€” the Eras section below only has the three format widths. no stand-alone versions in the original data, so don't come for me, I'm just the messenger πŸ™ˆ

🌈 Eras

🌸 Wide (format)

BCE
CE

πŸ’œ Abbreviated (format)

BCE
CE

πŸ¦‹ Narrow (format)

BCE
CE

πŸŽ€ Date Formats

okay so each one shows three sample datetimes, and then how that format renders them. all three samples, every time. let's go πŸ’–

🌸 Full

2008-02-05T18:30:30 = 2008 M02 5, Tue
1995-12-22T09:05:02 = 1995 M12 22, Fri
-0010-09-15T04:44:23 = -10 M09 15, Sat

πŸ’œ Long

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

πŸ¦‹ Medium

(runs in looking exactly like Long) no literally, same output. not a typo, it's the data:

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

πŸŽ€ Short

now it's giving ISO-8601 realness πŸ”₯:

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

same as Full, UTC and all. yes really:

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

the UTC dips out here β€” just the time, bestie:

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

hour and minute only. clean. efficient. 🧚

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 details, zero crumbs:

2008-02-05T18:30:30 = 2008 M02 5, Tue 18:30:30 UTC
1995-12-22T09:05:02 = 1995 M12 22, Fri 09:05:02 UTC
-0010-09-15T04:44:23 = -10 M09 15, Sat 04:44:23 UTC

πŸ’œ Long

the weekday name peaced out, everything else stayed:

2008-02-05T18:30:30 = 2008 M02 5 18:30:30 UTC
1995-12-22T09:05:02 = 1995 M12 22 09:05:02 UTC
-0010-09-15T04:44:23 = -10 M09 15 04:44:23 UTC

πŸ¦‹ Medium

and now UTC said bye too:

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

πŸŽ€ Short

compact, cute, gets the job done:

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

okay this is the big one β€” every named format, with its pattern in parentheses, then all three sample datetimes. buckle up, we're going through all of them. 🫢

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

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

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

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

Gy (G y)

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

GyMMM (G y MMM)

2008-02-05T18:30:30 = CE 2008 M02
1995-12-22T09:05:02 = CE 1995 M12
-0010-09-15T04:44:23 = BCE -10 M09

GyMMMEd (G y MMM d, E)

2008-02-05T18:30:30 = CE 2008 M02 5, Tue
1995-12-22T09:05:02 = CE 1995 M12 22, Fri
-0010-09-15T04:44:23 = BCE -10 M09 15, Sat

GyMMMd (G y MMM d)

2008-02-05T18:30:30 = CE 2008 M02 5
1995-12-22T09:05:02 = CE 1995 M12 22
-0010-09-15T04:44:23 = BCE -10 M09 15

GyMd (GGGGG y-MM-dd)

2008-02-05T18:30:30 = CE 2008-02-05
1995-12-22T09:05:02 = CE 1995-12-22
-0010-09-15T04:44:23 = BCE -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, Tue
1995-12-22T09:05:02 = 12-22, Fri
-0010-09-15T04:44:23 = 09-15, Sat

MMM (LLL)

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

MMMEd (MMM d, E)

2008-02-05T18:30:30 = M02 5, Tue
1995-12-22T09:05:02 = M12 22, Fri
-0010-09-15T04:44:23 = M09 15, Sat

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

2008-02-05T18:30:30 = week 1 of M02
1995-12-22T09:05:02 = week 3 of M12
-0010-09-15T04:44:23 = week 2 of M09

MMMMd (MMMM d)

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

MMMd (MMM d)

2008-02-05T18:30:30 = M02 5
1995-12-22T09:05:02 = M12 22
-0010-09-15T04:44:23 = M09 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, Tue
1995-12-22T09:05:02 = 1995-12-22, Fri
-0010-09-15T04:44:23 = -10-09-15, Sat

yMMM (y MMM)

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

yMMMEd (y MMM d, E)

2008-02-05T18:30:30 = 2008 M02 5, Tue
1995-12-22T09:05:02 = 1995 M12 22, Fri
-0010-09-15T04:44:23 = -10 M09 15, Sat

yMMMM (y MMMM)

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

yMMMd (y MMM d)

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

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

yQQQQ (y QQQQ)

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

yw-count-other ('week' w 'of' Y)

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

okay that was all 47 of them. you made it. proud of you. 🫢✨


🧚 Miscellaneous

πŸ’œ Prefers 24 hour time?

Yes. 24-hour girlie confirmed. πŸ•

🌸 Local first day of the week

1 (Mon) β€” the week starts on Monday, no cap.


⭐ Strftime Patterns

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

(the %e is doing that extra-space thing before single-digit days, and yes, those spaces below are load-bearing β€” don't touch them 😭)

2008-02-05T18:30:30 = Tue M02  5 18:30:30 2008
1995-12-22T09:05:02 = Fri M12 22 09:05:02 1995
-0010-09-15T04:44:23 = Sat M09 15 04:44:23 -10

and that's where part 1 wraps up β€” part 2 is right there waiting for you, keep scrolling bestie πŸ‘€πŸ’–

  • %x (%m/%d/%y) β€” the date format, bestie πŸ’…
 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) β€” the time format, and yes it's giving clock energy ⏰✨
 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 look at DateTime::Locale, bestie β€” that's literally where the answers live 🫢


and that's the whole page, no cap πŸ’– huge slay to perl v5.42.0 for dropping this on 2024-12-12, and shoutout to the DateTim...ale::rif(3) footer for keeping it iconic til the very last line πŸŽ€βœ¨

πŸ“¦ where this page comes from