summaryrefslogtreecommitdiffstats
path: root/vendor/chrono/src/format/locales.rs
blob: d6fecc978b40b202dd3b7246d5d8f9ebc0edc568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use pure_rust_locales::{locale_match, Locale};

pub(crate) const fn short_months(locale: Locale) -> &'static [&'static str] {
    locale_match!(locale => LC_TIME::ABMON)
}

pub(crate) const fn long_months(locale: Locale) -> &'static [&'static str] {
    locale_match!(locale => LC_TIME::MON)
}

pub(crate) const fn short_weekdays(locale: Locale) -> &'static [&'static str] {
    locale_match!(locale => LC_TIME::ABDAY)
}

pub(crate) const fn long_weekdays(locale: Locale) -> &'static [&'static str] {
    locale_match!(locale => LC_TIME::DAY)
}

pub(crate) const fn am_pm(locale: Locale) -> &'static [&'static str] {
    locale_match!(locale => LC_TIME::AM_PM)
}

pub(crate) const fn d_fmt(locale: Locale) -> &'static str {
    locale_match!(locale => LC_TIME::D_FMT)
}

pub(crate) const fn d_t_fmt(locale: Locale) -> &'static str {
    locale_match!(locale => LC_TIME::D_T_FMT)
}

pub(crate) const fn t_fmt(locale: Locale) -> &'static str {
    locale_match!(locale => LC_TIME::T_FMT)
}