Dates, times and timezones for Zig 0.17: IANA tzdata, ISO 8601, RFC 822, strftime, CLDR, Go, .NET and git date formats
zig-datetime GLOSSARY.md
1.2 kB · 40 lines
Markdown
at main

zig-datetime #

Calendar dates, times of day, instants and time zones, and the text formats they are read from and written to.

Language #

Calendar #

Epoch: The day 1970-01-01 in the proleptic Gregorian calendar, from which day numbers are counted. Avoid: era, start of era

Day number: A signed count of days from the epoch to a date; negative before it. Avoid: days since start of era, Rata Die (which counts from a different day)

Day of year: The position of a date within its calendar year, counting from 1 for 1 January: 1 through 365, or 366 in a leap year. Avoid: ordinal (ISO 8601's ordinal date is the year and the day of year together), Julian day (a count of days from 4713 BC)

Era: One 400-year cycle of the proleptic Gregorian calendar, always 146097 days long, after which the calendar repeats exactly. Avoid: epoch

Clock #

Second of day: The number of seconds elapsed since midnight, 0 through 86399. A leap second, the 61st second of its minute, is not a second of day. Avoid: remainder, time (on its own)