DateTim...ale::sv(3)

💖 DateTime::Locale::sv — the Swedish locale, but make it a vibe

okay so bestie, this is the perl manual page for DateTime::Locale::sv (that's the Swedish locale, sv, from the DateTime::Locale crew) 💅 and it's basically a giant show-and-tell of every piece of locale data you get.


✨ NAME ✨

DateTime::Locale::sv — Locale data examples for the Swedish (sv) locale 🎀


🌸 DESCRIPTION 🌸

So, this pod file contains examples of the locale data available for the Swedish locale. That's it, that's the whole assignment — it's a lookbook, not a tutorial 💖 Every category (days, months, quarters, eras, formats) gets shown off in all its widths and vibes, no cap.


🦋 Days 🦋

Wide (format)

måndag
tisdag
onsdag
torsdag
fredag
lördag
söndag

Abbreviated (format)

mån
tis
ons
tors
fre
lör
sön

Narrow (format)

M
T
O
T
F
L
S

Wide (stand-alone)

måndag
tisdag
onsdag
torsdag
fredag
lördag
söndag

Abbreviated (stand-alone)

mån
tis
ons
tors
fre
lör
sön

Narrow (stand-alone)

M
T
O
T
F
L
S
ngl the narrow ones are giving single-letter main character energy — two of them are literally both T and two are both M?? that's not a typo, that's just how Swedish said it 💀 T = tisdag/torsdag, M = måndag/maj-adjacent... anyway, they're real, don't @ me.

🌈 Months 🌈

Wide (format)

januari
februari
mars
april
maj
juni
juli
augusti
september
oktober
november
december

Abbreviated (format)

jan.
feb.
mars
apr.
maj
juni
juli
aug.
sep.
okt.
nov.
dec.

Narrow (format)

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

Wide (stand-alone)

januari
februari
mars
april
maj
juni
juli
augusti
september
oktober
november
december

Abbreviated (stand-alone)

jan.
feb.
mars
apr.
maj
juni
juli
aug.
sep.
okt.
nov.
dec.

Narrow (stand-alone)

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

🎀 Quarters 🎀

Wide (format)

1:a kvartalet
2:a kvartalet
3:e kvartalet
4:e kvartalet

Abbreviated (format)

K1
K2
K3
K4

Narrow (format)

1
2
3
4

Wide (stand-alone)

1:a kvartalet
2:a kvartalet
3:e kvartalet
4:e kvartalet

Abbreviated (stand-alone)

K1
K2
K3
K4

Narrow (stand-alone)

1
2
3
4

⭐ Eras ⭐

Wide (format)

före Kristus
efter Kristus

Abbreviated (format)

f.Kr.
e.Kr.

Narrow (format)

f.Kr.
e.Kr.
lowkey obsessed that narrow and abbreviated are just the same thing here. era of not overcomplicating things 🫶

🍓 Date Formats 🍓

Every one of these gets the same three test timestamps so you can see the pattern in action: 2008-02-05T18:30:30, 1995-12-22T09:05:02, and the icon that is -0010-09-15T04:44:23 (yes, negative years, we go way back 😭).

Full

2008-02-05T18:30:30 = tisdag 5 februari 2008
1995-12-22T09:05:02 = fredag 22 december 1995
-0010-09-15T04:44:23 = lördag 15 september -10

Long

2008-02-05T18:30:30 = 5 februari 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 sep. -10

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
bestie notice how Full and Long are identical here — that's not me being lazy, that's the locale 💅

💜 Datetime Formats 💜

Full

2008-02-05T18:30:30 = tisdag 5 februari 2008 18:30:30 UTC
1995-12-22T09:05:02 = fredag 22 december 1995 09:05:02 UTC
-0010-09-15T04:44:23 = lördag 15 september -10 04:44:23 UTC

Long

2008-02-05T18:30:30 = 5 februari 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 sep. -10 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 🔥

okay THIS is the big one — every named format the locale ships, with the pattern in parens and the three same test timestamps. it's giving buffet. we're going through all of them, no skipping, periodt 🍽️

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 = tis
1995-12-22T09:05:02 = fre
-0010-09-15T04:44:23 = lör

EBhm (E h:mm B)

2008-02-05T18:30:30 = tis 6:30 B
1995-12-22T09:05:02 = fre 9:05 B
-0010-09-15T04:44:23 = lör 4:44 B

EBhms (E h:mm:ss B)

2008-02-05T18:30:30 = tis 6:30:30 B
1995-12-22T09:05:02 = fre 9:05:02 B
-0010-09-15T04:44:23 = lör 4:44:23 B

EHm (E HH:mm)

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

EHms (E HH:mm:ss)

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

Ed (E d)

2008-02-05T18:30:30 = tis 5
1995-12-22T09:05:02 = fre 22
-0010-09-15T04:44:23 = lör 15

Ehm (E h:mm a)

2008-02-05T18:30:30 = tis 6:30 em
1995-12-22T09:05:02 = fre 9:05 fm
-0010-09-15T04:44:23 = lör 4:44 fm

Ehms (E h:mm:ss a)

2008-02-05T18:30:30 = tis 6:30:30 em
1995-12-22T09:05:02 = fre 9:05:02 fm
-0010-09-15T04:44:23 = lör 4:44:23 fm

Gy (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 (MMM y G)

2008-02-05T18:30:30 = feb. 2008 e.Kr.
1995-12-22T09:05:02 = dec. 1995 e.Kr.
-0010-09-15T04:44:23 = sep. -10 f.Kr.

GyMMMEd (E d MMM y G)

2008-02-05T18:30:30 = tis 5 feb. 2008 e.Kr.
1995-12-22T09:05:02 = fre 22 dec. 1995 e.Kr.
-0010-09-15T04:44:23 = lör 15 sep. -10 f.Kr.

GyMMMd (d MMM y G)

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

GyMd (y-MM-dd GGGGG)

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

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 d/M)

2008-02-05T18:30:30 = tis 5/2
1995-12-22T09:05:02 = fre 22/12
-0010-09-15T04:44:23 = lör 15/9

MMM (LLL)

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

MMMEd (E d MMM)

2008-02-05T18:30:30 = tis 5 feb.
1995-12-22T09:05:02 = fre 22 dec.
-0010-09-15T04:44:23 = lör 15 sep.

MMMMEd (E d MMMM)

2008-02-05T18:30:30 = tis 5 februari
1995-12-22T09:05:02 = fre 22 december
-0010-09-15T04:44:23 = lör 15 september

MMMMW-count-one ('vecka' W 'i' MMMM)

2008-02-05T18:30:30 = vecka 1 i februari
1995-12-22T09:05:02 = vecka 3 i december
-0010-09-15T04:44:23 = vecka 2 i september

MMMMW-count-other ('vecka' W 'i' MMMM)

2008-02-05T18:30:30 = vecka 1 i februari
1995-12-22T09:05:02 = vecka 3 i december
-0010-09-15T04:44:23 = vecka 2 i september
the count-one / count-other split is the pluralization machinery doing its thing — and yeah, for these three dates the output is identical for both 💀 iconic twin behaviour.

MMMMd (d MMMM)

2008-02-05T18:30:30 = 5 februari
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 sep.

MMd (d/M)

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

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 (d/M)

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

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 em
1995-12-22T09:05:02 = 9 fm
-0010-09-15T04:44:23 = 4 fm

hm (h:mm a)

2008-02-05T18:30:30 = 6:30 em
1995-12-22T09:05:02 = 9:05 fm
-0010-09-15T04:44:23 = 4:44 fm

hms (h:mm:ss a)

2008-02-05T18:30:30 = 6:30:30 em
1995-12-22T09:05:02 = 9:05:02 fm
-0010-09-15T04:44:23 = 4:44:23 fm

hmsv (h:mm:ss a v)

2008-02-05T18:30:30 = 6:30:30 em UTC
1995-12-22T09:05:02 = 9:05:02 fm UTC
-0010-09-15T04:44:23 = 4:44:23 fm UTC

hmv (h:mm a v)

2008-02-05T18:30:30 = 6:30 em UTC
1995-12-22T09:05:02 = 9:05 fm UTC
-0010-09-15T04:44:23 = 4:44 fm 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 (E, y-MM-dd)

2008-02-05T18:30:30 = tis, 2008-02-05
1995-12-22T09:05:02 = fre, 1995-12-22
-0010-09-15T04:44:23 = lör, -10-09-15

yMM (y-MM)

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

yMMM (MMM y)

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

yMMMEd (E d MMM y)

2008-02-05T18:30:30 = tis 5 feb. 2008
1995-12-22T09:05:02 = fre 22 dec. 1995
-0010-09-15T04:44:23 = lör 15 sep. -10

yMMMM (MMMM y)

okay so we're joining the format list mid-roll, no drama — here's the tail of that month-name pattern's examples, and then we keep it moving 💅

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

yMMMd (d MMM y) — day, lil month, year 🎀

the casual "when did this happen" energy, month gets abbreviated with its cute lil dot:

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

yMd (y-MM-dd) — the ISO-ish icon 🌈

year first, hyphen gang, absolutely no notes:

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) — short quarter 🧚

quarters get the K treatment (K1 to K4), then the year:

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 👑

spelled all the way out, ordinal style, main character energy:

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

yw-count-one ('vecka' w, Y) — week number, singular form 🦋

"vecka" plus the week number, comma, year — and ngl this one and the next one are literally twinning:

2008-02-05T18:30:30 = vecka 6, 2008
1995-12-22T09:05:02 = vecka 51, 1995
-0010-09-15T04:44:23 = vecka 37, -10

yw-count-other ('vecka' w, Y) — week number, other form 💜

same deal, the plural-ish/other plural category. identical output here, no cap:

2008-02-05T18:30:30 = vecka 6, 2008
1995-12-22T09:05:02 = vecka 51, 1995
-0010-09-15T04:44:23 = vecka 37, -10

🌸 MISCELLANEOUS 🌸

the lil setting vibes, bestie:

  • Prefers 24 hour time? — Yes. (24h supremacy, we love to see it 🙌)
  • Local first day of the week — 1 (måndag)

✨ STRFTIME PATTERNS ✨

the old-school strftime classics, still iconic, still showing up to the party.

%c (%a %b %e %H:%M:%S %Y) — date time format 🕰️

the whole shebang: weekday, month, day, clock, year:

2008-02-05T18:30:30 = tis feb.  5 18:30:30 2008
1995-12-22T09:05:02 = fre dec. 22 09:05:02 1995
-0010-09-15T04:44:23 = lör sep. 15 04:44:23 -10

(that double space before the 5 is the %e padding being its usual self, don't @ me)

%x (%m/%d/%y) — date format 📅

numbers only, slash girl summer:

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 clock, 24 hour, clean and gorgeous:

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 🫶

need more? go touch grass in DateTime::Locale — that's the whole support section, fr:

See DateTime::Locale.


okay that's the whole page, bestie, you ate that 💖 this lil Swedish locale doc is from perl v5.42.0, dated 2024-12-12, and it's the DateTim...ale::sv(3) page — yes the name is truncated with dots in the header, that's just how the manpage generator does her thing 😭✨ go format some dates, ily, bye 🎀

📦 where this page comes from