ae.utils.time.common

Time formats for string formatting and parsing.

Members

Enums

TimeFormatElement
enum TimeFormatElement

Based on php.net/date

Functions

timeFormatSize
size_t timeFormatSize(string fmt)

Calculate the maximum amount of characters needed to store a time in this format. Can be evaluated at compile-time.

Manifest constants

MaxTimezoneNameLength
enum MaxTimezoneNameLength;

We assume that no timezone will have a name longer than this. If one does, it is truncated to this length.

Structs

TimeFormats
struct TimeFormats

Common time format strings.

Variables

MonthLongNames
auto MonthLongNames;
MonthShortNames
auto MonthShortNames;
WeekdayLongNames
auto WeekdayLongNames;

English short and long weekday and month names, used when parsing and stringifying dates.

WeekdayShortNames
auto WeekdayShortNames;

English short and long weekday and month names, used when parsing and stringifying dates.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>