• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use pure_rust_locales::{locale_match, Locale};
2 
short_months(locale: Locale) -> &'static [&'static str]3 pub(crate) fn short_months(locale: Locale) -> &'static [&'static str] {
4     locale_match!(locale => LC_TIME::ABMON)
5 }
6 
long_months(locale: Locale) -> &'static [&'static str]7 pub(crate) fn long_months(locale: Locale) -> &'static [&'static str] {
8     locale_match!(locale => LC_TIME::MON)
9 }
10 
short_weekdays(locale: Locale) -> &'static [&'static str]11 pub(crate) fn short_weekdays(locale: Locale) -> &'static [&'static str] {
12     locale_match!(locale => LC_TIME::ABDAY)
13 }
14 
long_weekdays(locale: Locale) -> &'static [&'static str]15 pub(crate) fn long_weekdays(locale: Locale) -> &'static [&'static str] {
16     locale_match!(locale => LC_TIME::DAY)
17 }
18 
am_pm(locale: Locale) -> &'static [&'static str]19 pub(crate) fn am_pm(locale: Locale) -> &'static [&'static str] {
20     locale_match!(locale => LC_TIME::AM_PM)
21 }
22 
d_fmt(locale: Locale) -> &'static str23 pub(crate) fn d_fmt(locale: Locale) -> &'static str {
24     locale_match!(locale => LC_TIME::D_FMT)
25 }
26 
d_t_fmt(locale: Locale) -> &'static str27 pub(crate) fn d_t_fmt(locale: Locale) -> &'static str {
28     locale_match!(locale => LC_TIME::D_T_FMT)
29 }
30 
t_fmt(locale: Locale) -> &'static str31 pub(crate) fn t_fmt(locale: Locale) -> &'static str {
32     locale_match!(locale => LC_TIME::T_FMT)
33 }
34