2022-03-17 04:08:53 +03:00
|
|
|
/*
|
|
|
|
* 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 = {
|
2022-07-11 20:32:29 +03:00
|
|
|
"Sunday"sv, "Monday"sv, "Tuesday"sv, "Wednesday"sv, "Thursday"sv, "Friday"sv, "Saturday"sv
|
2022-03-17 04:08:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
static constexpr Array<StringView, 7> short_day_names = {
|
2022-07-11 20:32:29 +03:00
|
|
|
"Sun"sv, "Mon"sv, "Tue"sv, "Wed"sv, "Thu"sv, "Fri"sv, "Sat"sv
|
2022-03-17 04:08:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
static constexpr Array<StringView, 7> mini_day_names = {
|
2022-07-11 20:32:29 +03:00
|
|
|
"Su"sv, "Mo"sv, "Tu"sv, "We"sv, "Th"sv, "Fr"sv, "Sa"sv
|
2022-03-17 04:08:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
static constexpr Array<StringView, 7> micro_day_names = {
|
2022-07-11 20:32:29 +03:00
|
|
|
"S"sv, "M"sv, "T"sv, "W"sv, "T"sv, "F"sv, "S"sv
|
2022-03-17 04:08:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
static constexpr Array<StringView, 12> long_month_names = {
|
2022-07-11 20:32:29 +03:00
|
|
|
"January"sv, "February"sv, "March"sv, "April"sv, "May"sv, "June"sv,
|
|
|
|
"July"sv, "August"sv, "September"sv, "October"sv, "November"sv, "December"sv
|
2022-03-17 04:08:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
static constexpr Array<StringView, 12> short_month_names = {
|
2022-07-11 20:32:29 +03:00
|
|
|
"Jan"sv, "Feb"sv, "Mar"sv, "Apr"sv, "May"sv, "Jun"sv,
|
|
|
|
"Jul"sv, "Aug"sv, "Sep"sv, "Oct"sv, "Nov"sv, "Dec"sv
|
2022-03-17 04:08:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-11-26 14:18:30 +03:00
|
|
|
#if USING_AK_GLOBALLY
|
2022-03-17 04:08:53 +03:00
|
|
|
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;
|
2022-11-26 14:18:30 +03:00
|
|
|
#endif
|