DateTim...ale::nn(3)

๐Ÿ’… DateTime::Locale::nn โ€” the Norwegian Nynorsk locale, bestie edition

okay so this is from the DateTime::Locale::nn manual page โ€” header vibes: DateTim...ale::nn(3), cooked up by the User Contributed Perl Documentation crew, and it's filed under DateTim...ale::nn(3) (yes the truncation is giving "we ran out of terminal width" energy, it's fine, we move).


โœจ NAME โœจ

DateTime::Locale::nn โ€” literally just locale data examples for the Norwegian Nynorsk (nn) locale. that's the whole assignment. ๐Ÿ’–


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

this pod file is a whole show-and-tell of the locale data you get for the Norwegian Nynorsk locale. no cap, it's just examples of every little string the locale knows about, laid out so you can vibe-check them.

๐ŸŽ€ Days

Wide (format)

mรฅndag
tysdag
onsdag
torsdag
fredag
laurdag
sรธndag

Abbreviated (format)

mรฅ.
ty.
on.
to.
fr.
la.
sรธ.

Narrow (format)

M
T
O
T
F
L
S

Wide (stand-alone)

mรฅndag
tysdag
onsdag
torsdag
fredag
laurdag
sรธndag

Abbreviated (stand-alone)

mรฅn
tys
ons
tor
fre
lau
sรธn

Narrow (stand-alone)

M
T
O
T
F
L
S
bestie note: the narrow forms have two Ts and two Ms and two Ss and honestly that's just how it is, don't come for me. ๐Ÿ™ˆ

๐ŸŒธ Months

Wide (format)

januar
februar
mars
april
mai
juni
juli
august
september
oktober
november
desember

Abbreviated (format)

jan.
feb.
mars
apr.
mai
juni
juli
aug.
sep.
okt.
nov.
des.

Narrow (format)

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

Wide (stand-alone)

januar
februar
mars
april
mai
juni
juli
august
september
oktober
november
desember

Abbreviated (stand-alone)

jan
feb
mar
apr
mai
jun
jul
aug
sep
okt
nov
des

Narrow (stand-alone)

J
F
M
A
M
J
J
A
S
O
N
D
the way the stand-alone abbreviations drop the little dots (jan. โ†’ jan) is lowkey iconic. mars and mai don't even change because they're already short kings. ๐Ÿ‘‘

โญ Quarters

Wide (format)

1. kvartal
2. kvartal
3. kvartal
4. kvartal

Abbreviated (format)

K1
K2
K3
K4

Narrow (format)

1
2
3
4

Wide (stand-alone)

1. kvartal
2. kvartal
3. kvartal
4. kvartal

Abbreviated (stand-alone)

K1
K2
K3
K4

Narrow (stand-alone)

1
2
3
4

๐Ÿงš Eras

Wide (format)

fรธr Kristus
etter Kristus

Abbreviated (format)

f.Kr.
e.Kr.

Narrow (format)

f.Kr.
e.Kr.

๐Ÿ’œ Date Formats

Full

2008-02-05T18:30:30 = tysdag 5. februar 2008
1995-12-22T09:05:02 = fredag 22. desember 1995
-0010-09-15T04:44:23 = laurdag 15. september -10

Long

2008-02-05T18:30:30 = 5. februar 2008
1995-12-22T09:05:02 = 22. desember 1995
-0010-09-15T04:44:23 = 15. september -10

Medium

2008-02-05T18:30:30 = 5. feb. 2008
1995-12-22T09:05:02 = 22. des. 1995
-0010-09-15T04:44:23 = 15. sep. -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 = kl. 18:30:30 UTC
1995-12-22T09:05:02 = kl. 09:05:02 UTC
-0010-09-15T04:44:23 = kl. 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
the kl. prefix in Full is doing main character work, and then Long just drops it like it never happened. character development. โœจ

๐ŸŒˆ Datetime Formats

Full

2008-02-05T18:30:30 = tysdag 5. februar 2008 kl. 18:30:30 UTC
1995-12-22T09:05:02 = fredag 22. desember 1995 kl. 09:05:02 UTC
-0010-09-15T04:44:23 = laurdag 15. september -10 kl. 04:44:23 UTC

Long

2008-02-05T18:30:30 = 5. februar 2008 kl. 18:30:30 UTC
1995-12-22T09:05:02 = 22. desember 1995 kl. 09:05:02 UTC
-0010-09-15T04:44:23 = 15. september -10 kl. 04:44:23 UTC

Medium

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. sep. -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

okay this section is the motherlode โ€” every named pattern plus three sample renders, all copied exactly because I would never fudge your data. ๐Ÿ’€

  • Bh โ€” pattern h B
2008-02-05T18:30:30 = 6 B
1995-12-22T09:05:02 = 9 B
-0010-09-15T04:44:23 = 4 B
  • Bhm โ€” pattern 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 โ€” pattern 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 โ€” pattern ccc
2008-02-05T18:30:30 = tys
1995-12-22T09:05:02 = fre
-0010-09-15T04:44:23 = lau
  • EBhm โ€” pattern E h:mm B
2008-02-05T18:30:30 = ty. 6:30 B
1995-12-22T09:05:02 = fr. 9:05 B
-0010-09-15T04:44:23 = la. 4:44 B
  • EBhms โ€” pattern E h:mm:ss B
2008-02-05T18:30:30 = ty. 6:30:30 B
1995-12-22T09:05:02 = fr. 9:05:02 B
-0010-09-15T04:44:23 = la. 4:44:23 B
  • EHm โ€” pattern E HH:mm
2008-02-05T18:30:30 = ty. 18:30
1995-12-22T09:05:02 = fr. 09:05
-0010-09-15T04:44:23 = la. 04:44
  • EHms โ€” pattern E HH:mm:ss
2008-02-05T18:30:30 = ty. 18:30:30
1995-12-22T09:05:02 = fr. 09:05:02
-0010-09-15T04:44:23 = la. 04:44:23
  • Ed โ€” pattern E d.
2008-02-05T18:30:30 = ty. 5.
1995-12-22T09:05:02 = fr. 22.
-0010-09-15T04:44:23 = la. 15.
  • Ehm โ€” pattern E h:mm a
2008-02-05T18:30:30 = ty. 6:30 e.m.
1995-12-22T09:05:02 = fr. 9:05 f.m.
-0010-09-15T04:44:23 = la. 4:44 f.m.
  • Ehms โ€” pattern E h:mm:ss a
2008-02-05T18:30:30 = ty. 6:30:30 e.m.
1995-12-22T09:05:02 = fr. 9:05:02 f.m.
-0010-09-15T04:44:23 = la. 4:44:23 f.m.
  • Gy โ€” pattern y G
2008-02-05T18:30:30 = 2008 e.Kr.
1995-12-22T09:05:02 = 1995 e.Kr.
-0010-09-15T04:44:23 = -10 f.Kr.
  • GyMMM โ€” pattern MMM y G
2008-02-05T18:30:30 = feb. 2008 e.Kr.
1995-12-22T09:05:02 = des. 1995 e.Kr.
-0010-09-15T04:44:23 = sep. -10 f.Kr.
  • GyMMMEd โ€” pattern E d. MMM y G
2008-02-05T18:30:30 = ty. 5. feb. 2008 e.Kr.
1995-12-22T09:05:02 = fr. 22. des. 1995 e.Kr.
-0010-09-15T04:44:23 = la. 15. sep. -10 f.Kr.
  • GyMMMd โ€” pattern d. MMM y G
2008-02-05T18:30:30 = 5. feb. 2008 e.Kr.
1995-12-22T09:05:02 = 22. des. 1995 e.Kr.
-0010-09-15T04:44:23 = 15. sep. -10 f.Kr.
  • GyMd โ€” pattern dd.MM.y GGGGG
2008-02-05T18:30:30 = 05.02.2008 e.Kr.
1995-12-22T09:05:02 = 22.12.1995 e.Kr.
-0010-09-15T04:44:23 = 15.09.-10 f.Kr.
  • H โ€” pattern HH
2008-02-05T18:30:30 = 18
1995-12-22T09:05:02 = 09
-0010-09-15T04:44:23 = 04
  • Hm โ€” pattern HH:mm
2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 09:05
-0010-09-15T04:44:23 = 04:44
  • Hms โ€” pattern 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 โ€” pattern 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 โ€” pattern 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 โ€” pattern L.
2008-02-05T18:30:30 = 2.
1995-12-22T09:05:02 = 12.
-0010-09-15T04:44:23 = 9.
  • MEd โ€” pattern E d.M.
2008-02-05T18:30:30 = ty. 5.2.
1995-12-22T09:05:02 = fr. 22.12.
-0010-09-15T04:44:23 = la. 15.9.
  • MMM โ€” pattern LLL
2008-02-05T18:30:30 = feb
1995-12-22T09:05:02 = des
-0010-09-15T04:44:23 = sep
  • MMMEd โ€” pattern E d. MMM
2008-02-05T18:30:30 = ty. 5. feb.
1995-12-22T09:05:02 = fr. 22. des.
-0010-09-15T04:44:23 = la. 15. sep.
  • MMMMW-count-one โ€” pattern 'veke' W 'i' MMMM
2008-02-05T18:30:30 = veke 1 i februar
1995-12-22T09:05:02 = veke 3 i desember
-0010-09-15T04:44:23 = veke 2 i september
  • MMMMW-count-other โ€” pattern 'veke' W 'i' MMMM
2008-02-05T18:30:30 = veke 1 i februar
1995-12-22T09:05:02 = veke 3 i desember
-0010-09-15T04:44:23 = veke 2 i september
yes MMMMW-count-one and MMMMW-count-other render identically here. they're twins. matching outfits. not a typo on my end, I promise. ๐Ÿซถ
  • MMMMd โ€” pattern d. MMMM
2008-02-05T18:30:30 = 5. februar
1995-12-22T09:05:02 = 22. desember
-0010-09-15T04:44:23 = 15. september
  • MMMd โ€” pattern d. MMM
2008-02-05T18:30:30 = 5. feb.
1995-12-22T09:05:02 = 22. des.
-0010-09-15T04:44:23 = 15. sep.
  • MMdd โ€” pattern d.M.
2008-02-05T18:30:30 = 5.2.
1995-12-22T09:05:02 = 22.12.
-0010-09-15T04:44:23 = 15.9.
  • Md โ€” pattern d.M.
2008-02-05T18:30:30 = 5.2.
1995-12-22T09:05:02 = 22.12.
-0010-09-15T04:44:23 = 15.9.
  • d โ€” pattern d.
2008-02-05T18:30:30 = 5.
1995-12-22T09:05:02 = 22.
-0010-09-15T04:44:23 = 15.
  • h โ€” pattern h a
2008-02-05T18:30:30 = 6 e.m.
1995-12-22T09:05:02 = 9 f.m.
-0010-09-15T04:44:23 = 4 f.m.
  • hm โ€” pattern h:mm a
2008-02-05T18:30:30 = 6:30 e.m.
1995-12-22T09:05:02 = 9:05 f.m.
-0010-09-15T04:44:23 = 4:44 f.m.
  • hms โ€” pattern h:mm:ss a
2008-02-05T18:30:30 = 6:30:30 e.m.
1995-12-22T09:05:02 = 9:05:02 f.m.
-0010-09-15T04:44:23 = 4:44:23 f.m.
  • hmsv โ€” pattern h:mm:ss a v
2008-02-05T18:30:30 = 6:30:30 e.m. UTC
1995-12-22T09:05:02 = 9:05:02 f.m. UTC
-0010-09-15T04:44:23 = 4:44:23 f.m. UTC
  • hmv โ€” pattern h:mm a v
2008-02-05T18:30:30 = 6:30 e.m. UTC
1995-12-22T09:05:02 = 9:05 f.m. UTC
-0010-09-15T04:44:23 = 4:44 f.m. UTC
  • ms โ€” pattern mm:ss
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
  • y โ€” pattern y
2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10
  • yM โ€” pattern M.y
2008-02-05T18:30:30 = 2.2008
1995-12-22T09:05:02 = 12.1995
-0010-09-15T04:44:23 = 9.-10
  • yMEd โ€” pattern E d.M.y
2008-02-05T18:30:30 = ty. 5.2.2008
1995-12-22T09:05:02 = fr. 22.12.1995
-0010-09-15T04:44:23 = la. 15.9.-10
  • yMM โ€” pattern MM.y
2008-02-05T18:30:30 = 02.2008
1995-12-22T09:05:02 = 12.1995
-0010-09-15T04:44:23 = 09.-10
  • yMMM โ€” pattern MMM y
2008-02-05T18:30:30 = feb. 2008
1995-12-22T09:05:02 = des. 1995
-0010-09-15T04:44:23 = sep. -10
  • yMMMEd โ€” pattern E d. MMM y
2008-02-05T18:30:30 = ty. 5. feb. 2008
1995-12-22T09:05:02 = fr. 22. des. 1995
-0010-09-15T04:44:23 = la. 15. sep. -10
  • yMMMM โ€” pattern MMMM y
2008-02-05T18:30:30 = februar 2008
1995-12-22T09:05:02 = desember 1995
-0010-09-15T04:44:23 = september -10
  • yMMMd โ€” pattern d. MMM y

and that's exactly where part 1 runs out, bestie ๐Ÿ˜ญ the yMMMd sample renders are literally on the next page โ€” more parts follow, so don't go anywhere, the data is coming ๐ŸŽ€

โ€ฆand the pattern parade absolutely did not stop, bestie ๐Ÿ’… same three timestamps every single time so you can compare the glow-ups side by side โ€” 2008-02-05T18:30:30, 1995-12-22T09:05:02, and -0010-09-15T04:44:23 (yes that last one is a negative year, she's thriving ๐Ÿ™ˆ).

2008-02-05T18:30:30 = 5. feb. 2008
1995-12-22T09:05:02 = 22. des. 1995
-0010-09-15T04:44:23 = 15. sep. -10

  • yMd (d.M.y) โ€” the short numeric date, dots instead of slashes, very Scandinavian of her ๐ŸŽ€
2008-02-05T18:30:30 = 5.2.2008
1995-12-22T09:05:02 = 22.12.1995
-0010-09-15T04:44:23 = 15.9.-10
  • yQQQ (QQQ y) โ€” quarter energy, abbreviated. Short and sassy โœจ
2008-02-05T18:30:30 = K1 2008
1995-12-22T09:05:02 = K4 1995
-0010-09-15T04:44:23 = K3 -10
  • yQQQQ (QQQQ y) โ€” the full quarter flex, no abbreviations, main character energy ๐Ÿ‘‘
2008-02-05T18:30:30 = 1. kvartal 2008
1995-12-22T09:05:02 = 4. kvartal 1995
-0010-09-15T04:44:23 = 3. kvartal -10
  • yw-count-one ('veke' w 'i' Y) โ€” week number, singular form, literally spelling out the word for "week" and "in" right there in the pattern ๐Ÿ—“๏ธ
2008-02-05T18:30:30 = veke 6 i 2008
1995-12-22T09:05:02 = veke 51 i 1995
-0010-09-15T04:44:23 = veke 37 i -10
  • yw-count-other ('veke' w 'i' Y) โ€” same pattern string, the "other" plural/่ฎกๆ•ฐ variant. Identical output here, because Nynorsk said "veke is veke" and honestly? iconic ๐ŸŒธ
2008-02-05T18:30:30 = veke 6 i 2008
1995-12-22T09:05:02 = veke 51 i 1995
-0010-09-15T04:44:23 = veke 37 i -10

โœจ MISCELLANEOUS โœจ

The little vibe-check facts about this locale, no cap:

  • Prefers 24 hour time? โ€” Yes ๐Ÿ•• no AM/PM chaos here, we do 18:30:30 and we mean it.
  • Local first day of the week โ€” 1 (mรฅndag) ๐Ÿ’– week starts on Monday, as it should.

๐ŸŒˆ STRFTIME PATTERNS ๐ŸŒˆ

Now the strftime classics โ€” the OG format codes, translated into Nynorsk for you:

  • %c (%a %b %e %H:%M:%S %Y) - date time format โ€” the whole date and time in one go, abbreviated day name, abbreviated month name, space-padded day, then the clock, then the year โญ
2008-02-05T18:30:30 = ty. feb.  5 18:30:30 2008
1995-12-22T09:05:02 = fr. des. 22 09:05:02 1995
-0010-09-15T04:44:23 = la. sep. 15 04:44:23 -10
  • %x (%m/%d/%y) - date format โ€” the date-only one, month/day/two-digit-year, slashed up ๐ŸŽ€
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, no notes ๐Ÿ’…
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 09:05:02
-0010-09-15T04:44:23 = 04:44:23
Little heads-up bestie: keep an eye on those spaces in the %c output โ€” that ty. feb. 5 has a double space in there, and it's supposed to. Copy it exactly, don't "tidy" it ๐Ÿ™ˆ

๐Ÿ’– SUPPORT ๐Ÿ’–

Need more? See DateTime::Locale. That's the whole support section, she's lowkey mysterious like that ๐Ÿซถ


and that's the whole page, bestie โ€” you ate that ๐Ÿ“โœจ

this beauty shipped as part of perl v5.42.0, dated 2024-12-12 โ€” go forth and format your Nynorsk dates with confidence, no cap ๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from