DateTim...e::ar_BH(3)

✨ NAME ✨

DateTime::Locale::ar_BH — locale data examples for the Arabic Bahrain (ar-BH) locale, bestie 💖

Real talk: this page lives in the User Contributed Perl Documentation manual, section 3, and it's literally a big glossy show-and-tell of what the ar-BH locale strings look like in every single width and style. Think of it as a lookbook, not a how-to 👑


🌸 DESCRIPTION 🌸

Okay so, this pod file contains examples of the locale data available for the Arabic Bahrain locale. That's it, that's the whole assignment — but the way it delivers? Immaculate. Every day name, month name, quarter, era, date format, time format, datetime format and named pattern gets shown off with real sample values. No cap, it's giving reference sheet energy and I'm obsessed 🫶


🦋 DAYS 🦋

Days get six whole flavours: three widths, and each one in format and stand-alone mode. Same vibes, different contexts. iykyk ✨

Wide (format)

الاثنين
الثلاثاء
الأربعاء
الخميس
الجمعة
السبت
الأحد

Abbreviated (format)

الاثنين
الثلاثاء
الأربعاء
الخميس
الجمعة
السبت
الأحد

Narrow (format)

ن
ث
ر
خ
ج
س
ح

Wide (stand-alone)

الاثنين
الثلاثاء
الأربعاء
الخميس
الجمعة
السبت
الأحد

Abbreviated (stand-alone)

الاثنين
الثلاثاء
الأربعاء
الخميس
الجمعة
السبت
الأحد

Narrow (stand-alone)

ن
ث
ر
خ
ج
س
ح

🎀 MONTHS 🎀

Twelve months, six flavours again. Same routine, and honestly? Slay 💅

Wide (format)

يناير
فبراير
مارس
أبريل
مايو
يونيو
يوليو
أغسطس
سبتمبر
أكتوبر
نوفمبر
ديسمبر

Abbreviated (format)

يناير
فبراير
مارس
أبريل
مايو
يونيو
يوليو
أغسطس
سبتمبر
أكتوبر
نوفمبر
ديسمبر

Narrow (format)

ي
ف
م
أ
و
ن
ل
غ
س
ك
ب
د

Wide (stand-alone)

يناير
فبراير
مارس
أبريل
مايو
يونيو
يوليو
أغسطس
سبتمبر
أكتوبر
نوفمبر
ديسمبر

Abbreviated (stand-alone)

يناير
فبراير
مارس
أبريل
مايو
يونيو
يوليو
أغسطس
سبتمبر
أكتوبر
نوفمبر
ديسمبر

Narrow (stand-alone)

ي
ف
م
أ
و
ن
ل
غ
س
ك
ب
د

🧚 QUARTERS 🧚

Four quarters, six flavours. The narrow ones are literally just Arabic-Indic digits ١ ٢ ٣ ٤ and honestly that's so minimal of them 💀

Wide (format)

الربع الأول
الربع الثاني
الربع الثالث
الربع الرابع

Abbreviated (format)

الربع الأول
الربع الثاني
الربع الثالث
الربع الرابع

Narrow (format)

١
٢
٣
٤

Wide (stand-alone)

الربع الأول
الربع الثاني
الربع الثالث
الربع الرابع

Abbreviated (stand-alone)

الربع الأول
الربع الثاني
الربع الثالث
الربع الرابع

Narrow (stand-alone)

١
٢
٣
٤

⭐ ERAS ⭐

Eras keep it short and sweet — only three widths, and only the format kind (no stand-alone era content here, just so you know 👀).

Wide (format)

قبل الميلاد
ميلادي

Abbreviated (format)

ق.م
م

Narrow (format)

ق.م
م

💜 DATE FORMATS 💜

Four widths, each one demoed with the same three iconic timestamps so you can see exactly how it hits. Watch how the third one goes negative year and it's still serving 🌈

Full

2008-02-05T18:30:30 = الثلاثاء، 5 فبراير 2008
1995-12-22T09:05:02 = الجمعة، 22 ديسمبر 1995
-0010-09-15T04:44:23 = السبت، 15 سبتمبر -10

Long

2008-02-05T18:30:30 = 5 فبراير 2008
1995-12-22T09:05:02 = 22 ديسمبر 1995
-0010-09-15T04:44:23 = 15 سبتمبر -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 = 5/2/2008
1995-12-22T09:05:02 = 22/12/1995
-0010-09-15T04:44:23 = 15/9/-10

🕐 TIME FORMATS 🕐

Same four widths, but for times. Notice how Full and Long both throw on the UTC zone, while Medium and Short keep it lowkey and drop it 💖

Full

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

Long

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

Medium

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

Short

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

🍓 DATETIME FORMATS 🍓

Date + time, married, iconic. The separator between them is ، and the whole thing just works together, fr fr ✨

Full

2008-02-05T18:30:30 = الثلاثاء، 5 فبراير 2008، 6:30:30 م UTC
1995-12-22T09:05:02 = الجمعة، 22 ديسمبر 1995، 9:05:02 ص UTC
-0010-09-15T04:44:23 = السبت، 15 سبتمبر -10، 4:44:23 ص UTC

Long

2008-02-05T18:30:30 = 5 فبراير 2008، 6:30:30 م UTC
1995-12-22T09:05:02 = 22 ديسمبر 1995، 9:05:02 ص UTC
-0010-09-15T04:44:23 = 15 سبتمبر -10، 4:44:23 ص UTC

Medium

2008-02-05T18:30:30 = 05/02/2008، 6:30:30 م
1995-12-22T09:05:02 = 22/12/1995، 9:05:02 ص
-0010-09-15T04:44:23 = 15/09/-10، 4:44:23 ص

Short

2008-02-05T18:30:30 = 5/2/2008، 6:30 م
1995-12-22T09:05:02 = 22/12/1995، 9:05 ص
-0010-09-15T04:44:23 = 15/9/-10، 4:44 ص

🔥 AVAILABLE FORMATS 🔥

Okay bestie, this is the big one — every named skeleton pattern the locale ships, each with its own three-line demo. Grab a snack, we're going through all of them 🍓 The heading shows the format name followed by the actual pattern in parentheses, and then the samples. Don't skip any, the way every single one of these got a glow-up is a whole mood 👑

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 = الثلاثاء
1995-12-22T09:05:02 = الجمعة
-0010-09-15T04:44:23 = السبت

EBhm (E 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

EBhms (E 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

EHm (E HH:mm)

2008-02-05T18:30:30 = الثلاثاء 18:30
1995-12-22T09:05:02 = الجمعة 09:05
-0010-09-15T04:44:23 = السبت 04:44

EHms (E 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

Ed (E، d)

2008-02-05T18:30:30 = الثلاثاء، 5
1995-12-22T09:05:02 = الجمعة، 22
-0010-09-15T04:44:23 = السبت، 15

Ehm (E h:mm a)

2008-02-05T18:30:30 = الثلاثاء 6:30 م
1995-12-22T09:05:02 = الجمعة 9:05 ص
-0010-09-15T04:44:23 = السبت 4:44 ص

Ehms (E h:mm:ss a)

2008-02-05T18:30:30 = الثلاثاء 6:30:30 م
1995-12-22T09:05:02 = الجمعة 9:05:02 ص
-0010-09-15T04:44:23 = السبت 4:44:23 ص

Gy (y G)

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

GyMMM (MMM y G)

2008-02-05T18:30:30 = فبراير 2008 م
1995-12-22T09:05:02 = ديسمبر 1995 م
-0010-09-15T04:44:23 = سبتمبر -10 ق.م

GyMMMEd (E، d MMM y G)

2008-02-05T18:30:30 = الثلاثاء، 5 فبراير 2008 م
1995-12-22T09:05:02 = الجمعة، 22 ديسمبر 1995 م
-0010-09-15T04:44:23 = السبت، 15 سبتمبر -10 ق.م

GyMMMd (d MMM y G)

2008-02-05T18:30:30 = 5 فبراير 2008 م
1995-12-22T09:05:02 = 22 ديسمبر 1995 م
-0010-09-15T04:44:23 = 15 سبتمبر -10 ق.م

GyMd (dd-MM-y GGGGG)

2008-02-05T18:30:30 = 05-02-2008 م
1995-12-22T09:05:02 = 22-12-1995 م
-0010-09-15T04:44:23 = 15-09--10 ق.م
Okay real talk, peep that third line: 15-09--10 — the negative year makes a double dash and it looks like a typo but it is absolutely on purpose 💀 Don't "fix" it, bestie.

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 = الثلاثاء، 5/2
1995-12-22T09:05:02 = الجمعة، 22/12
-0010-09-15T04:44:23 = السبت، 15/9

MMM (LLL)

2008-02-05T18:30:30 = فبراير
1995-12-22T09:05:02 = ديسمبر
-0010-09-15T04:44:23 = سبتمبر

MMMEd (E، d MMM)

2008-02-05T18:30:30 = الثلاثاء، 5 فبراير
1995-12-22T09:05:02 = الجمعة، 22 ديسمبر
-0010-09-15T04:44:23 = السبت، 15 سبتمبر

MMMMEd (E، d MMMM)

2008-02-05T18:30:30 = الثلاثاء، 5 فبراير
1995-12-22T09:05:02 = الجمعة، 22 ديسمبر
-0010-09-15T04:44:23 = السبت، 15 سبتمبر

MMMMW-count-few (الأسبوع W من MMMM)

2008-02-05T18:30:30 = الأسبوع 1 من فبراير
1995-12-22T09:05:02 = الأسبوع 3 من ديسمبر
-0010-09-15T04:44:23 = الأسبوع 2 من سبتمبر

MMMMW-count-many (الأسبوع W من MMMM)

2008-02-05T18:30:30 = الأسبوع 1 من فبراير
1995-12-22T09:05:02 = الأسبوع 3 من ديسمبر
-0010-09-15T04:44:23 = الأسبوع 2 من سبتمبر

MMMMW-count-one (الأسبوع W من MMMM)

2008-02-05T18:30:30 = الأسبوع 1 من فبراير
1995-12-22T09:05:02 = الأسبوع 3 من ديسمبر
-0010-09-15T04:44:23 = الأسبوع 2 من سبتمبر

MMMMW-count-other (الأسبوع W من MMMM)

2008-02-05T18:30:30 = الأسبوع 1 من فبراير
1995-12-22T09:05:02 = الأسبوع 3 من ديسمبر
-0010-09-15T04:44:23 = الأسبوع 2 من سبتمبر

MMMMW-count-two (الأسبوع W من MMMM)

2008-02-05T18:30:30 = الأسبوع 1 من فبراير
1995-12-22T09:05:02 = الأسبوع 3 من ديسمبر
-0010-09-15T04:44:23 = الأسبوع 2 من سبتمبر

MMMMW-count-zero (الأسبوع W من MMMM)

2008-02-05T18:30:30 = الأسبوع 1 من فبراير
1995-12-22T09:05:02 = الأسبوع 3 من ديسمبر
-0010-09-15T04:44:23 = الأسبوع 2 من سبتمبر

MMMMd (d MMMM)

And that's literally where part 1 runs out of runway 😭 MMMMd just showed up and the page cuts off — the rest of it plus everything after is coming at you in part 2, so don't go anywhere bestie 💖

okay so we're picking right back up mid-list, no intro needed 💅 here come the formats:

MMMd (d MMM)

2008-02-05T18:30:30 = 5 فبراير
1995-12-22T09:05:02 = 22 ديسمبر
-0010-09-15T04:44:23 = 15 سبتمبر

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

hm (h:mm a)

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

hms (h:mm:ss a)

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

hmsv (h:mm:ss a v)

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

hmv (h:mm a v)

2008-02-05T18:30:30 = 6:30 م UTC
1995-12-22T09:05:02 = 9:05 ص UTC
-0010-09-15T04:44:23 = 4:44 ص 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

no cap, that negative year is giving time-traveler 💀

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 = الثلاثاء، 5/2/2008
1995-12-22T09:05:02 = الجمعة، 22/12/1995
-0010-09-15T04:44:23 = السبت، 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 = فبراير 2008
1995-12-22T09:05:02 = ديسمبر 1995
-0010-09-15T04:44:23 = سبتمبر -10

yMMMEd (E، d MMM y)

2008-02-05T18:30:30 = الثلاثاء، 5 فبراير 2008
1995-12-22T09:05:02 = الجمعة، 22 ديسمبر 1995
-0010-09-15T04:44:23 = السبت، 15 سبتمبر -10

yMMMM (MMMM y)

2008-02-05T18:30:30 = فبراير 2008
1995-12-22T09:05:02 = ديسمبر 1995
-0010-09-15T04:44:23 = سبتمبر -10

yMMMd (d MMM y)

2008-02-05T18:30:30 = 5 فبراير 2008
1995-12-22T09:05:02 = 22 ديسمبر 1995
-0010-09-15T04:44:23 = 15 سبتمبر -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 = الربع الأول 2008
1995-12-22T09:05:02 = الربع الرابع 1995
-0010-09-15T04:44:23 = الربع الثالث -10

yQQQQ (QQQQ y)

2008-02-05T18:30:30 = الربع الأول 2008
1995-12-22T09:05:02 = الربع الرابع 1995
-0010-09-15T04:44:23 = الربع الثالث -10

and now the week-number girlies 🌸 six of them, one per plural category — and yes, bestie, the output is literally identical for all six, we don't make the rules:

yw-count-few (الأسبوع w من سنة Y)

2008-02-05T18:30:30 = الأسبوع 6 من سنة 2008
1995-12-22T09:05:02 = الأسبوع 51 من سنة 1995
-0010-09-15T04:44:23 = الأسبوع 37 من سنة -10

yw-count-many (الأسبوع w من سنة Y)

2008-02-05T18:30:30 = الأسبوع 6 من سنة 2008
1995-12-22T09:05:02 = الأسبوع 51 من سنة 1995
-0010-09-15T04:44:23 = الأسبوع 37 من سنة -10

yw-count-one (الأسبوع w من سنة Y)

2008-02-05T18:30:30 = الأسبوع 6 من سنة 2008
1995-12-22T09:05:02 = الأسبوع 51 من سنة 1995
-0010-09-15T04:44:23 = الأسبوع 37 من سنة -10

yw-count-other (الأسبوع w من سنة Y)

2008-02-05T18:30:30 = الأسبوع 6 من سنة 2008
1995-12-22T09:05:02 = الأسبوع 51 من سنة 1995
-0010-09-15T04:44:23 = الأسبوع 37 من سنة -10

yw-count-two (الأسبوع w من سنة Y)

2008-02-05T18:30:30 = الأسبوع 6 من سنة 2008
1995-12-22T09:05:02 = الأسبوع 51 من سنة 1995
-0010-09-15T04:44:23 = الأسبوع 37 من سنة -10

yw-count-zero (الأسبوع w من سنة Y)

2008-02-05T18:30:30 = الأسبوع 6 من سنة 2008
1995-12-22T09:05:02 = الأسبوع 51 من سنة 1995
-0010-09-15T04:44:23 = الأسبوع 37 من سنة -10

🎀 Miscellaneous 🎀

the little extras, the vibe check of the locale ✨

  • Prefers 24 hour time? No
  • Local first day of the week 6 (السبت)

so like, Saturday is the moment, and we're staying on 12-hour time 🫶


🌈 Strftime Patterns 🌈

the classic strftime girlies, unchanged and iconic 👑

  • %c (%d %b, %Y %I:%M:%S %p) — date time format
2008-02-05T18:30:30 = 05 فبراير, 2008 06:30:30 م
1995-12-22T09:05:02 = 22 ديسمبر, 1995 09:05:02 ص
-0010-09-15T04:44:23 = 15 سبتمبر, -10 04:44:23 ص
  • %x (%d %b, %Y) — date format
2008-02-05T18:30:30 = 05 فبراير, 2008
1995-12-22T09:05:02 = 22 ديسمبر, 1995
-0010-09-15T04:44:23 = 15 سبتمبر, -10
  • %X (%Z %I:%M:%S %p) — time format
2008-02-05T18:30:30 = UTC 06:30:30 م
1995-12-22T09:05:02 = UTC 09:05:02 ص
-0010-09-15T04:44:23 = UTC 04:44:23 ص

💜 SUPPORT 💜

  • See DateTime::Locale.

that's literally it, bestie — the whole support section is a redirect. go read that one next, it's giving "see also" but make it a whole page 🦋


and that's a wrap on DateTim...e::ar_BH(3) 💖 this beauty shipped as perl v5.42.0, dated 2024-12-12, and honestly? iconic. mwah, go format some dates, ily ✨🎀

📦 where this page comes from