DateTim...e::id_ID(3)

๐Ÿฆ‹ DATE TIME :: LOCALE :: ID_ID โ€” the perl one ๐Ÿซถ

ok bestie, so this is a User Contributed Perl Documentation page for DateTime::Locale::id_ID โ€” that's the locale data for the Indonesian Indonesia (id-ID) locale ๐Ÿ’– It's literally a big ol' pile of examples showing what the locale data looks like, and honestly? it's giving reference sheet, and we are obsessed.


โœจ NAME โœจ

DateTime::Locale::id_ID โ€” locale data examples for the Indonesian Indonesia (id-ID) locale ๐ŸŒˆ


๐Ÿ’… DESCRIPTION ๐Ÿ’…

so this pod file is literally a showcase โ€” it's packed with examples of the locale data that's available for the Indonesian Indonesia locale ๐Ÿ‡ฎ๐Ÿ‡ฉโœจ Think of it as a vibe check for every single format string this locale can spit out.


๐ŸŒธ Days ๐ŸŒธ

Wide (format) ๐Ÿ’–

Senin
Selasa
Rabu
Kamis
Jumat
Sabtu
Minggu

Abbreviated (format) โœจ

Sen
Sel
Rab
Kam
Jum
Sab
Min

Narrow (format) ๐ŸŽ€

S
S
R
K
J
S
M

Wide (stand-alone) ๐Ÿฆ‹

Senin
Selasa
Rabu
Kamis
Jumat
Sabtu
Minggu

Abbreviated (stand-alone) ๐ŸŒธ

Sen
Sel
Rab
Kam
Jum
Sab
Min

Narrow (stand-alone) ๐Ÿ’ซ

S
S
R
K
J
S
M
ngl the narrow ones look like a captcha and that's iconic of them ๐Ÿ’€ but fr fr that's just how narrow day names roll.

๐ŸŒ™ Months ๐ŸŒ™

Wide (format) ๐Ÿ’–

Januari
Februari
Maret
April
Mei
Juni
Juli
Agustus
September
Oktober
November
Desember

Abbreviated (format) โœจ

Jan
Feb
Mar
Apr
Mei
Jun
Jul
Agu
Sep
Okt
Nov
Des

Narrow (format) ๐ŸŽ€

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

Wide (stand-alone) ๐Ÿฆ‹

Januari
Februari
Maret
April
Mei
Juni
Juli
Agustus
September
Oktober
November
Desember

Abbreviated (stand-alone) ๐ŸŒธ

Jan
Feb
Mar
Apr
Mei
Jun
Jul
Agu
Sep
Okt
Nov
Des

Narrow (stand-alone) ๐Ÿ’ซ

J
F
M
A
M
J
J
A
S
O
N
D
ok so the narrow months have so many duplicates (M three times, J three times, A twice) and yes that's lowkey chaotic but it's exactly what the data says, bestie, don't come for me ๐Ÿ™ˆ

๐Ÿงš Quarters ๐Ÿงš

Wide (format) ๐Ÿ’–

Kuartal ke-1
Kuartal ke-2
Kuartal ke-3
Kuartal ke-4

Abbreviated (format) โœจ

K1
K2
K3
K4

Narrow (format) ๐ŸŽ€

1
2
3
4

Wide (stand-alone) ๐Ÿฆ‹

Kuartal ke-1
Kuartal ke-2
Kuartal ke-3
Kuartal ke-4

Abbreviated (stand-alone) ๐ŸŒธ

K1
K2
K3
K4

Narrow (stand-alone) ๐Ÿ’ซ

1
2
3
4

๐Ÿ‘‘ Eras ๐Ÿ‘‘

Wide (format) ๐Ÿ’–

Sebelum Masehi
Masehi

Abbreviated (format) โœจ

SM
M

Narrow (format) ๐ŸŽ€

SM
M

๐Ÿ“… Date Formats ๐Ÿ“…

Full ๐Ÿ”ฅ

2008-02-05T18:30:30 = Selasa, 05 Februari 2008
1995-12-22T09:05:02 = Jumat, 22 Desember 1995
-0010-09-15T04:44:23 = Sabtu, 15 September -10

Long โญ

2008-02-05T18:30:30 = 5 Februari 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/08
1995-12-22T09:05:02 = 22/12/95
-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
yes bestie, Full and Long are literally identical here โ€” that's not me being lazy, that's just the data being the data ๐Ÿ’…

๐ŸŒŸ Datetime Formats ๐ŸŒŸ

Full ๐Ÿ”ฅ

2008-02-05T18:30:30 = Selasa, 05 Februari 2008 18.30.30 UTC
1995-12-22T09:05:02 = Jumat, 22 Desember 1995 09.05.02 UTC
-0010-09-15T04:44:23 = Sabtu, 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 Desember 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 Des 1995 09.05.02
-0010-09-15T04:44:23 = 15 Sep -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 ๐ŸŽ€

ok this next bit is the motherlode โ€” every named format this locale ships with, plus three sample datetimes so you can see it in action. Buckle up, bestie ๐Ÿซถ

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 = Sel
1995-12-22T09:05:02 = Jum
-0010-09-15T04:44:23 = Sab

EBhm (E h.mm B) ๐ŸŒธ

2008-02-05T18:30:30 = Sel 6.30 B
1995-12-22T09:05:02 = Jum 9.05 B
-0010-09-15T04:44:23 = Sab 4.44 B

EBhms (E h.mm.ss B) ๐Ÿ’ซ

2008-02-05T18:30:30 = Sel 6.30.30 B
1995-12-22T09:05:02 = Jum 9.05.02 B
-0010-09-15T04:44:23 = Sab 4.44.23 B

EHm (E HH.mm) ๐Ÿ”ฅ

2008-02-05T18:30:30 = Sel 18.30
1995-12-22T09:05:02 = Jum 09.05
-0010-09-15T04:44:23 = Sab 04.44

EHms (E HH.mm.ss) โญ

2008-02-05T18:30:30 = Sel 18.30.30
1995-12-22T09:05:02 = Jum 09.05.02
-0010-09-15T04:44:23 = Sab 04.44.23

Ed (E, d) ๐ŸŒˆ

2008-02-05T18:30:30 = Sel, 5
1995-12-22T09:05:02 = Jum, 22
-0010-09-15T04:44:23 = Sab, 15

Ehm (E h.mm a) ๐Ÿ“

2008-02-05T18:30:30 = Sel 6.30 PM
1995-12-22T09:05:02 = Jum 9.05 AM
-0010-09-15T04:44:23 = Sab 4.44 AM

Ehms (E h.mm.ss a) ๐Ÿ’œ

2008-02-05T18:30:30 = Sel 6.30.30 PM
1995-12-22T09:05:02 = Jum 9.05.02 AM
-0010-09-15T04:44:23 = Sab 4.44.23 AM

Gy (y G) ๐Ÿ’–

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

GyMMM (MMM y G) โœจ

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

GyMMMEd (E, d MMM y G) ๐ŸŽ€

2008-02-05T18:30:30 = Sel, 5 Feb 2008 M
1995-12-22T09:05:02 = Jum, 22 Des 1995 M
-0010-09-15T04:44:23 = Sab, 15 Sep -10 SM

GyMMMd (d MMM y G) ๐Ÿฆ‹

2008-02-05T18:30:30 = 5 Feb 2008 M
1995-12-22T09:05:02 = 22 Des 1995 M
-0010-09-15T04:44:23 = 15 Sep -10 SM

GyMd (d/M/y GGGGG) ๐ŸŒธ

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

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 = Sel, 5/2
1995-12-22T09:05:02 = Jum, 22/12
-0010-09-15T04:44:23 = Sab, 15/9

MMM (LLL) โœจ

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

MMMEd (E, d MMM) ๐ŸŽ€

2008-02-05T18:30:30 = Sel, 5 Feb
1995-12-22T09:05:02 = Jum, 22 Des
-0010-09-15T04:44:23 = Sab, 15 Sep

MMMMEd (E, d MMMM) ๐Ÿฆ‹

2008-02-05T18:30:30 = Sel, 5 Februari
1995-12-22T09:05:02 = Jum, 22 Desember
-0010-09-15T04:44:23 = Sab, 15 September

MMMMW-count-other ('minggu' 'ke'-W MMMM) ๐ŸŒธ

2008-02-05T18:30:30 = minggu ke-1 Februari
1995-12-22T09:05:02 = minggu ke-3 Desember
-0010-09-15T04:44:23 = minggu ke-2 September

MMMMd (d MMMM) ๐Ÿ’ซ

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

MMMd (d MMM) ๐Ÿ”ฅ

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

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 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
notice the extra period after the seconds in hmsv before PM/AM? yeah that's in the pattern, don't touch it, it's canon ๐Ÿ’…

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 = Sel, 5/2/2008
1995-12-22T09:05:02 = Jum, 22/12/1995
-0010-09-15T04:44:23 = Sab, 15/9/-10

yMMM (MMM y) โญ

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

yMMMEd (E, d MMM y) ๐ŸŒˆ

2008-02-05T18:30:30 = Sel, 5 Feb 2008
1995-12-22T09:05:02 = Jum, 22 Des 1995
-0010-09-15T04:44:23 = Sab, 15 Sep -10

yMMMM (MMMM y) ๐Ÿ“

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

yMMMd (d MMM y) ๐Ÿ’œ

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) ๐Ÿ’–

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) โœจ

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

yQQQQ (QQQQ y) ๐ŸŽ€

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

Okay and that's the quarters situation ๐Ÿ’… like, first quarter, fourth quarter, third quarter of the year negative ten โ€” it all just works, no cap.

โœจ yw-count-other ('minggu' 'ke'-w Y)

"week-of-year, count 'other'" โ€” i.e. which week number we're on. Look:

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

So minggu ke-6 = week 6, minggu ke-51 = week 51, minggu ke-37 = week 37 ๐Ÿ˜Œ the -w in the pattern name is literally just "week number" and Y is the year, bestie, that's the whole vibe.


๐ŸŒธ Miscellaneous ๐ŸŒธ

Some quick facts, rapid fire ๐ŸŽ€

  • Prefers 24 hour time? Yes ๐Ÿ”ฅ
  • Local first day of the week: 7 (Minggu) โ€” so the week starts on Sunday here, main character energy for Minggu ๐Ÿ‘‘

๐Ÿฆ‹ Strftime Patterns ๐Ÿฆ‹

These are the classic strftime-style pattern strings, and yes, they each come with receipts (example outputs) so you can vibe-check them yourself ๐Ÿ’–

โญ %c (%a %d %b %Y %r) - date time format

          2008-02-05T18:30:30 = Sel 05 Feb 2008 06:30:30 PM
          1995-12-22T09:05:02 = Jum 22 Des 1995 09:05:02 AM
         -0010-09-15T04:44:23 = Sab 15 Sep -10 04:44:23 AM

Full date and time, all in one โ€” the deluxe combo meal of format strings ๐Ÿ”โœจ

โญ %x (%d/%m/%y) - date format

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

Day/month/year, in that order โ€” not the US way, the iconic way ๐Ÿ’…

โญ %X (%T) - time format

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

Just the time, 24-hour style, clean and unbothered ๐Ÿ••


๐Ÿ‘‘ SUPPORT ๐Ÿ‘‘

See DateTime::Locale. That's it, that's the support section โ€” go read the parent class, it's got everything, iykyk ๐Ÿซถ

Fr fr though: if something here looks cursed, DateTime::Locale is where the actual machinery lives, so start there before you come for this page ๐Ÿ˜ญ

And that's a wrap, bestie! ๐ŸŽ€ This little beauty shipped with perl v5.42.0 and got stamped 2024-12-12 โ€” so if your copy says otherwise, you're on a different version, no drama ๐ŸŒˆ Thanks for reading the whole id_ID locale tea, go format some dates and slay ๐Ÿ’–โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from