mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
LibUnicode: Add minimal support for generic & offset-based time zones
ECMA-402 now supports short-offset, long-offset, short-generic, and long-generic time zone name formatting. For example, in the en-US locale the America/Eastern time zone would be formatted as: short-offset: GMT-5 long-offset: GMT-05:00 short-generic: ET long-generic: Eastern Time We currently only support the UTC time zone, however. Therefore, this very minimal implementation does not consider GMT offset or generic display names. Instead, the CLDR defines specific strings for UTC.
This commit is contained in:
parent
d2ac40bcd7
commit
126a3fe180
3 changed files with 109 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
|
||||
* Copyright (c) 2021-2022, Tim Flynn <trflynn89@pm.me>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -71,6 +71,10 @@ enum class CalendarPatternStyle : u8 {
|
|||
Long,
|
||||
Numeric,
|
||||
TwoDigit,
|
||||
ShortOffset,
|
||||
LongOffset,
|
||||
ShortGeneric,
|
||||
LongGeneric,
|
||||
};
|
||||
|
||||
struct CalendarPattern {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue