DateTim...e::de_CH(3)

🌸 NAME 🌸

okay bestie, welcome to DateTim...e::de_CH(3) β€” your very own User Contributed Perl Documentation page ✨ β€” and it's literally named DateTime::Locale::de_CH.

It's all about Locale data examples for the German Switzerland (de-CH) locale πŸ’…πŸ‡¨πŸ‡­


πŸ’– DESCRIPTION πŸ’–

This pod file is basically a vibe check for the locale data you get with the German Switzerland locale β€” it just shows you examples of everything, no cap πŸ“‹βœ¨

Every section below is a different little pile of data: days, months, quarters, eras, and then a whole bunch of date/time format examples so you can see exactly how stuff renders. Let's get into it 🫢

πŸŽ€ Days πŸŽ€

Wide (format)

Montag
Dienstag
Mittwoch
Donnerstag
Freitag
Samstag
Sonntag

Abbreviated (format)

Mo.
Di.
Mi.
Do.
Fr.
Sa.
So.

Narrow (format)

M
D
M
D
F
S
S

Wide (stand-alone)

Montag
Dienstag
Mittwoch
Donnerstag
Freitag
Samstag
Sonntag

Abbreviated (stand-alone)

Mo
Di
Mi
Do
Fr
Sa
So

Narrow (stand-alone)

M
D
M
D
F
S
S
ngl the narrow ones are giving nothing β€” two of them are literally the same letter twice 😭 but that's what the data says, so we keep it exactly as-is πŸ’€

πŸ¦‹ Months πŸ¦‹

Wide (format)

Januar
Februar
MΓ€rz
April
Mai
Juni
Juli
August
September
Oktober
November
Dezember

Abbreviated (format)

Jan.
Feb.
MΓ€rz
Apr.
Mai
Juni
Juli
Aug.
Sept.
Okt.
Nov.
Dez.

Narrow (format)

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

Wide (stand-alone)

Januar
Februar
MΓ€rz
April
Mai
Juni
Juli
August
September
Oktober
November
Dezember

Abbreviated (stand-alone)

Jan
Feb
MΓ€r
Apr
Mai
Jun
Jul
Aug
Sep
Okt
Nov
Dez

Narrow (stand-alone)

J
F
M
A
M
J
J
A
S
O
N
D
πŸ‘€ notice the little glow-up between the format and stand-alone abbreviated months β€” the format ones got the trailing . and the stand-alone ones didn't. MΓ€rz and Mai are just out here living their truth with no dot at all. iconic, honestly πŸŽ€

🌈 Quarters 🌈

Wide (format)

1. Quartal
2. Quartal
3. Quartal
4. Quartal

Abbreviated (format)

Q1
Q2
Q3
Q4

Narrow (format)

1
2
3
4

Wide (stand-alone)

1. Quartal
2. Quartal
3. Quartal
4. Quartal

Abbreviated (stand-alone)

Q1
Q2
Q3
Q4

Narrow (stand-alone)

1
2
3
4

⭐ Eras ⭐

Wide (format)

v. Chr.
n. Chr.

Abbreviated (format)

v. Chr.
n. Chr.

Narrow (format)

v. Chr.
n. Chr.
yes bestie, all three widths are literally identical here 😭 it's giving "we didn't have time to shorten it" and honestly? relatable πŸ’€

πŸ”₯ Date Formats πŸ”₯

Full

2008-02-05T18:30:30 = Dienstag, 5. Februar 2008
1995-12-22T09:05:02 = Freitag, 22. Dezember 1995
-0010-09-15T04:44:23 = Samstag, 15. September -10

Long

2008-02-05T18:30:30 = 5. Februar 2008
1995-12-22T09:05:02 = 22. Dezember 1995
-0010-09-15T04:44:23 = 15. September -10

Medium

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

Short

2008-02-05T18:30:30 = 05.02.08
1995-12-22T09:05:02 = 22.12.95
-0010-09-15T04:44:23 = 15.09.-10
side note, the negative-year one is wild β€” -10 is just sitting there being negative and everyone's acting normal πŸ’€ but that's the example data, fr fr.

πŸ’œ 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
Full and Long are twins. literally identical. not a single character of difference 😭 we love consistency (we do not) 🫢

🧚 Datetime Formats 🧚

Full

2008-02-05T18:30:30 = Dienstag, 5. Februar 2008, 18:30:30 UTC
1995-12-22T09:05:02 = Freitag, 22. Dezember 1995, 09:05:02 UTC
-0010-09-15T04:44:23 = Samstag, 15. September -10, 04:44:23 UTC

Long

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

Medium

2008-02-05T18:30:30 = 05.02.2008, 18:30:30
1995-12-22T09:05:02 = 22.12.1995, 09:05:02
-0010-09-15T04:44:23 = 15.09.-10, 04:44:23

Short

2008-02-05T18:30:30 = 05.02.08, 18:30
1995-12-22T09:05:02 = 22.12.95, 09:05
-0010-09-15T04:44:23 = 15.09.-10, 04:44

πŸ‘‘ Available Formats πŸ‘‘

okay this next bit is the big one β€” a whole catalogue of named formats with their pattern in parentheses and then example outputs. copy them exactly, bestie, they're load-bearing πŸ’…

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 = Di
1995-12-22T09:05:02 = Fr
-0010-09-15T04:44:23 = Sa

EBhm (E h:mm B)

2008-02-05T18:30:30 = Di. 6:30 B
1995-12-22T09:05:02 = Fr. 9:05 B
-0010-09-15T04:44:23 = Sa. 4:44 B

EBhms (E h:mm:ss B)

2008-02-05T18:30:30 = Di. 6:30:30 B
1995-12-22T09:05:02 = Fr. 9:05:02 B
-0010-09-15T04:44:23 = Sa. 4:44:23 B

EHm (E, HH:mm)

2008-02-05T18:30:30 = Di., 18:30
1995-12-22T09:05:02 = Fr., 09:05
-0010-09-15T04:44:23 = Sa., 04:44

EHms (E, HH:mm:ss)

2008-02-05T18:30:30 = Di., 18:30:30
1995-12-22T09:05:02 = Fr., 09:05:02
-0010-09-15T04:44:23 = Sa., 04:44:23

Ed (E, d.)

2008-02-05T18:30:30 = Di., 5.
1995-12-22T09:05:02 = Fr., 22.
-0010-09-15T04:44:23 = Sa., 15.

Ehm (E h:mm a)

2008-02-05T18:30:30 = Di. 6:30 PM
1995-12-22T09:05:02 = Fr. 9:05 AM
-0010-09-15T04:44:23 = Sa. 4:44 AM

Ehms (E, h:mm:ss a)

2008-02-05T18:30:30 = Di., 6:30:30 PM
1995-12-22T09:05:02 = Fr., 9:05:02 AM
-0010-09-15T04:44:23 = Sa., 4:44:23 AM

Gy (y G)

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

GyMMM (MMM y G)

2008-02-05T18:30:30 = Feb. 2008 n. Chr.
1995-12-22T09:05:02 = Dez. 1995 n. Chr.
-0010-09-15T04:44:23 = Sept. -10 v. Chr.

GyMMMEd (E, d. MMM y G)

2008-02-05T18:30:30 = Di., 5. Feb. 2008 n. Chr.
1995-12-22T09:05:02 = Fr., 22. Dez. 1995 n. Chr.
-0010-09-15T04:44:23 = Sa., 15. Sept. -10 v. Chr.

GyMMMd (d. MMM y G)

2008-02-05T18:30:30 = 5. Feb. 2008 n. Chr.
1995-12-22T09:05:02 = 22. Dez. 1995 n. Chr.
-0010-09-15T04:44:23 = 15. Sept. -10 v. Chr.

GyMd (dd.MM.y GGGGG)

2008-02-05T18:30:30 = 05.02.2008 n. Chr.
1995-12-22T09:05:02 = 22.12.1995 n. Chr.
-0010-09-15T04:44:23 = 15.09.-10 v. Chr.

H (HH 'Uhr')

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

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 = Di., 5.2.
1995-12-22T09:05:02 = Fr., 22.12.
-0010-09-15T04:44:23 = Sa., 15.9.

MMM (LLL)

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

MMMEd (E, d. MMM)

2008-02-05T18:30:30 = Di., 5. Feb.
1995-12-22T09:05:02 = Fr., 22. Dez.
-0010-09-15T04:44:23 = Sa., 15. Sept.

MMMMEd (E, d. MMMM)

2008-02-05T18:30:30 = Di., 5. Februar
1995-12-22T09:05:02 = Fr., 22. Dezember
-0010-09-15T04:44:23 = Sa., 15. September

MMMMW-count-one ('Woche' W 'im' MMMM)

2008-02-05T18:30:30 = Woche 1 im Februar
1995-12-22T09:05:02 = Woche 3 im Dezember
-0010-09-15T04:44:23 = Woche 2 im September

MMMMW-count-other ('Woche' W 'im' MMMM)

2008-02-05T18:30:30 = Woche 1 im Februar
1995-12-22T09:05:02 = Woche 3 im Dezember
-0010-09-15T04:44:23 = Woche 2 im September
yes the count-one and count-other versions are identical here 😭 same numbers, same everything. keep both anyway, both are real πŸ’…

MMMMd (d. MMMM)

2008-02-05T18:30:30 = 5. Februar
1995-12-22T09:05:02 = 22. Dezember
-0010-09-15T04:44:23 = 15. September

MMMd (d. MMM)

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

MMd (d.MM.)

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

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 'Uhr' a)

2008-02-05T18:30:30 = 6 Uhr PM
1995-12-22T09:05:02 = 9 Uhr AM
-0010-09-15T04:44:23 = 4 Uhr 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 (M/y)

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

yMEd (E, d.M.y)

2008-02-05T18:30:30 = Di., 5.2.2008
1995-12-22T09:05:02 = Fr., 22.12.1995
-0010-09-15T04:44:23 = Sa., 15.9.-10

yMM (MM.y)

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

yMMM (MMM y)

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

yMMMEd (E, d. MMM y)

yMMMM (MMMM y)

the month-name-plus-year combo ✨

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

yMMMd (d. MMM y)

day, abbreviated month, year β€” the classic little trio πŸŽ€

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

yMMdd (dd.MM.y)

all-numbers, all-padded, no thoughts head empty πŸ’…

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

yMd (d.M.y)

same idea as above but zero-padding said "not today" πŸ¦‹

          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 πŸ”₯

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

yQQQQ (QQQQ y)

and now the long-form quarter, because we're fancy like that πŸ‘‘

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

yw-count-one ('Woche' w 'des' 'Jahres' Y)

week number + year, with the literal words baked right in πŸ—“οΈ

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

yw-count-other ('Woche' w 'des' 'Jahres' Y)

okay so this one is literally the same output as the one above β€” no cap, look:

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

Both exist as separate entries, both print the identical thing for these dates. We love a consistent queen πŸ’–


Miscellaneous

Two lil facts about this locale, bestie:

  • Prefers 24 hour time? Yes 🌸 (18:30:30 girlies rise)
  • Local first day of the week: 1 (Montag) β€” Monday is the main character here πŸ‘‘

Strftime Patterns

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

the whole entire timestamp, full send πŸ’«

          2008-02-05T18:30:30 = Di. 05 Feb. 2008 18:30:30
          1995-12-22T09:05:02 = Fr. 22 Dez. 1995 09:05:02
         -0010-09-15T04:44:23 = Sa. 15 Sept. -10 04:44:23

%x (%d.%m.%Y) - date format

just the date portion, dotted and padded πŸ“

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

%X (%T) - time format

and just the time, clean and colon-y ✨

          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 it, that's the whole support section β€” go look there, iykyk 🫢


and that's the whole page, bestie!! this lil tour of DateTime::Locale::de_CH shipped with perl v5.42.0, dated 2024-12-12, and you'll find it filed under DateTim...e::de_CH(3) in the manual. slay, go format some Swiss German dates πŸ’œπŸŽ€
πŸ“¦ where this page comes from