Skip to main content

system_time/
const.rs

1/// Abbreviated English weekday names, indexed by weekday number.
2pub const DAYS: [&str; 7] = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
3
4/// Abbreviated English month names, indexed by month number minus one.
5pub const MONTHS: [&str; 12] = [
6    "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
7];
8
9/// Day count of every month in a leap year.
10pub const LEAP_YEAR: [u64; 12] = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
11
12/// Day count of every month in a common (non-leap) year.
13pub const COMMON_YEAR: [u64; 12] = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
14
15/// Environment variable holding the locale of the current session.
16pub const LANG_ENV_VAR: &str = "LANG";
17
18/// Human-readable name of the Arabic (Saudi Arabia) locale.
19pub const LANG_AR_SA_NAME: &str = "العربية (السعودية)";
20
21/// Human-readable name of the German (Germany) locale.
22pub const LANG_DE_DE_NAME: &str = "Deutsch (Deutschland)";
23
24/// Human-readable name of the English (United States) locale.
25pub const LANG_EN_US_NAME: &str = "English (US)";
26
27/// Human-readable name of the Spanish (Spain) locale.
28pub const LANG_ES_ES_NAME: &str = "Español (España)";
29
30/// Human-readable name of the Finnish (Finland) locale.
31pub const LANG_FI_FI_NAME: &str = "Suomi (Suomi)";
32
33/// Human-readable name of the French (France) locale.
34pub const LANG_FR_FR_NAME: &str = "Français (France)";
35
36/// Human-readable name of the Hindi (India) locale.
37pub const LANG_HI_IN_NAME: &str = "हिन्दी (भारत)";
38
39/// Human-readable name of the Italian (Italy) locale.
40pub const LANG_IT_IT_NAME: &str = "Italiano (Italia)";
41
42/// Human-readable name of the Japanese (Japan) locale.
43pub const LANG_JA_JP_NAME: &str = "日本語 (日本)";
44
45/// Human-readable name of the Korean (South Korea) locale.
46pub const LANG_KO_KR_NAME: &str = "한국어 (한국)";
47
48/// Human-readable name of the Dutch (Netherlands) locale.
49pub const LANG_NL_NL_NAME: &str = "Nederlands (Nederland)";
50
51/// Human-readable name of the Portuguese (Portugal) locale.
52pub const LANG_PT_PT_NAME: &str = "Português (Portugal)";
53
54/// Human-readable name of the Russian (Russia) locale.
55pub const LANG_RU_RU_NAME: &str = "Русский (Россия)";
56
57/// Human-readable name of the Swedish (Sweden) locale.
58pub const LANG_SV_SE_NAME: &str = "Svenska (Sverige)";
59
60/// Human-readable name of the Thai (Thailand) locale.
61pub const LANG_TH_TH_NAME: &str = "ภาษาไทย (ประเทศไทย)";
62
63/// Human-readable name of the Vietnamese (Vietnam) locale.
64pub const LANG_VI_VN_NAME: &str = "Tiếng Việt (Việt Nam)";
65
66/// Human-readable name of the Chinese (China) locale.
67pub const LANG_ZH_CN_NAME: &str = "中文 (中国)";
68
69/// POSIX locale string of the Arabic (Saudi Arabia) UTF-8 encoding.
70pub const LANG_AR_SA_LOCALE: &str = "ar_SA.UTF-8";
71
72/// POSIX locale string of the German (Germany) UTF-8 encoding.
73pub const LANG_DE_DE_LOCALE: &str = "de_DE.UTF-8";
74
75/// POSIX locale string of the English (United States) UTF-8 encoding.
76pub const LANG_EN_US_LOCALE: &str = "en_US.UTF-8";
77
78/// POSIX locale string of the Spanish (Spain) UTF-8 encoding.
79pub const LANG_ES_ES_LOCALE: &str = "es_ES.UTF-8";
80
81/// POSIX locale string of the Finnish (Finland) UTF-8 encoding.
82pub const LANG_FI_FI_LOCALE: &str = "fi_FI.UTF-8";
83
84/// POSIX locale string of the French (France) UTF-8 encoding.
85pub const LANG_FR_FR_LOCALE: &str = "fr_FR.UTF-8";
86
87/// POSIX locale string of the Hindi (India) UTF-8 encoding.
88pub const LANG_HI_IN_LOCALE: &str = "hi_IN.UTF-8";
89
90/// POSIX locale string of the Italian (Italy) UTF-8 encoding.
91pub const LANG_IT_IT_LOCALE: &str = "it_IT.UTF-8";
92
93/// POSIX locale string of the Japanese (Japan) UTF-8 encoding.
94pub const LANG_JA_JP_LOCALE: &str = "ja_JP.UTF-8";
95
96/// POSIX locale string of the Korean (South Korea) UTF-8 encoding.
97pub const LANG_KO_KR_LOCALE: &str = "ko_KR.UTF-8";
98
99/// POSIX locale string of the Dutch (Netherlands) UTF-8 encoding.
100pub const LANG_NL_NL_LOCALE: &str = "nl_NL.UTF-8";
101
102/// POSIX locale string of the Portuguese (Portugal) UTF-8 encoding.
103pub const LANG_PT_PT_LOCALE: &str = "pt_PT.UTF-8";
104
105/// POSIX locale string of the Russian (Russia) UTF-8 encoding.
106pub const LANG_RU_RU_LOCALE: &str = "ru_RU.UTF-8";
107
108/// POSIX locale string of the Swedish (Sweden) UTF-8 encoding.
109pub const LANG_SV_SE_LOCALE: &str = "sv_SE.UTF-8";
110
111/// POSIX locale string of the Thai (Thailand) UTF-8 encoding.
112pub const LANG_TH_TH_LOCALE: &str = "th_TH.UTF-8";
113
114/// POSIX locale string of the Vietnamese (Vietnam) UTF-8 encoding.
115pub const LANG_VI_VN_LOCALE: &str = "vi_VN.UTF-8";
116
117/// POSIX locale string of the Chinese (China) UTF-8 encoding.
118pub const LANG_ZH_CN_LOCALE: &str = "zh_CN.UTF-8";