Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
types.hpp File Reference

Type definitions for time-related units and formats. More...

Go to the source code of this file.

Namespaces

namespace  time_shield
 Main namespace for the Time Shield library.
 

Typedefs

typedef int64_t time_shield::year_t
 Year as an integer (e.g., 2024).
 
typedef int64_t time_shield::uday_t
 Unix day count since 1970‑01‑01 (days since epoch).
 
using time_shield::unixday_t = uday_t
 Alias for Unix day count type.
 
typedef int64_t time_shield::ts_t
 Unix timestamp in seconds since 1970‑01‑01T00:00:00Z.
 
typedef int64_t time_shield::ts_ms_t
 Unix timestamp in milliseconds since epoch.
 
typedef int64_t time_shield::ts_us_t
 Unix timestamp in microseconds since epoch.
 
typedef double time_shield::fts_t
 Floating-point timestamp (fractional seconds since epoch).
 
typedef double time_shield::oadate_t
 OLE Automation date (days since 1899‑12‑30, as double).
 
typedef double time_shield::jd_t
 Julian Date (days since -4713‑11‑24T12:00:00Z).
 
typedef double time_shield::mjd_t
 Modified Julian Date (JD − 2400000.5).
 
typedef uint64_t time_shield::jdn_t
 Julian Day Number (whole days since Julian epoch).
 
typedef int32_t time_shield::tz_t
 Time zone offset in minutes from UTC (e.g., +180 = UTC+3).
 

Detailed Description

Type definitions for time-related units and formats.

This file defines standard type aliases used across the Time Shield library. It includes representations for Unix timestamps, Julian dates, automation time, time zone offsets, and other related units.

Definition in file types.hpp.