Type definitions for time-related units and formats.
More...
Type definitions for time-related units and formats.
This group includes type definitions for years, timestamps (seconds, milliseconds, microseconds), and other time-related units such as Julian dates and time zone offsets.
Key Features:
- Simplifies working with different time units and formats.
- Provides meaningful aliases for commonly used time-related data types.
Example Usage:
TIME_SHIELD_CONSTEXPR const T year(ts_t ts=ts())
Alias for get_year function.
int64_t ts_t
Type for representing timestamps in seconds.
int64_t year_t
Type for representing years as integers.
const ts_t timestamp() noexcept
Get the current UTC timestamp in seconds.
◆ fts_t
Type for representing timestamps as floating-point numbers (e.g., fractional seconds).
Definition at line 36 of file types.hpp.
◆ jd_t
Type for representing Julian Dates as floating-point numbers.
Definition at line 38 of file types.hpp.
◆ jdn_t
Type for representing Julian Day Numbers as unsigned integers.
Definition at line 40 of file types.hpp.
◆ mjd_t
Type for representing Modified Julian Dates as floating-point numbers.
Definition at line 39 of file types.hpp.
◆ oadate_t
Type for representing Automation Date (OADate) values as floating-point numbers.
Definition at line 37 of file types.hpp.
◆ ts_ms_t
Type for representing timestamps in milliseconds.
Definition at line 34 of file types.hpp.
◆ ts_t
Type for representing timestamps in seconds.
Definition at line 33 of file types.hpp.
◆ ts_us_t
Type for representing timestamps in microseconds.
Definition at line 35 of file types.hpp.
◆ tz_t
Type for representing time zone offsets in minutes.
Definition at line 41 of file types.hpp.
◆ uday_t
Type for representing Unix days as integers (days since January 1, 1970).
Definition at line 32 of file types.hpp.
◆ unixday_t
Alias for Unix day type (uday_t).
Definition at line 43 of file types.hpp.
◆ year_t
Type for representing years as integers.
Definition at line 31 of file types.hpp.