summaryrefslogtreecommitdiff
path: root/AK/DateConstants.h
blob: 939ac4aa85d3a58083723d8cbf672832921489c1 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (c) 2022, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Array.h>
#include <AK/StringView.h>

namespace AK {

static constexpr Array<StringView, 7> long_day_names = {
    "Sunday"sv, "Monday"sv, "Tuesday"sv, "Wednesday"sv, "Thursday"sv, "Friday"sv, "Saturday"sv
};

static constexpr Array<StringView, 7> short_day_names = {
    "Sun"sv, "Mon"sv, "Tue"sv, "Wed"sv, "Thu"sv, "Fri"sv, "Sat"sv
};

static constexpr Array<StringView, 7> mini_day_names = {
    "Su"sv, "Mo"sv, "Tu"sv, "We"sv, "Th"sv, "Fr"sv, "Sa"sv
};

static constexpr Array<StringView, 7> micro_day_names = {
    "S"sv, "M"sv, "T"sv, "W"sv, "T"sv, "F"sv, "S"sv
};

static constexpr Array<StringView, 12> long_month_names = {
    "January"sv, "February"sv, "March"sv, "April"sv, "May"sv, "June"sv,
    "July"sv, "August"sv, "September"sv, "October"sv, "November"sv, "December"sv
};

static constexpr Array<StringView, 12> short_month_names = {
    "Jan"sv, "Feb"sv, "Mar"sv, "Apr"sv, "May"sv, "Jun"sv,
    "Jul"sv, "Aug"sv, "Sep"sv, "Oct"sv, "Nov"sv, "Dec"sv
};

}

#if USING_AK_GLOBALLY
using AK::long_day_names;
using AK::long_month_names;
using AK::micro_day_names;
using AK::mini_day_names;
using AK::short_day_names;
using AK::short_month_names;
#endif