Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#pragma once
6#ifndef _TIME_SHIELD_TYPES_HPP_INCLUDED
7#define _TIME_SHIELD_TYPES_HPP_INCLUDED
8
9#include <cstdint>
10
11namespace time_shield {
12
30
31 typedef int64_t year_t;
32 typedef int64_t uday_t;
33 typedef int64_t ts_t;
34 typedef int64_t ts_ms_t;
35 typedef int64_t ts_us_t;
36 typedef double fts_t;
37 typedef double oadate_t;
38 typedef double jd_t;
39 typedef double mjd_t;
40 typedef uint64_t jdn_t;
41 typedef int tz_t;
42
43 using unixday_t = uday_t;
44
46
47}; // namespace time_shield
48
49#endif // _TIME_SHIELD_TYPES_HPP_INCLUDED
int64_t ts_t
Type for representing timestamps in seconds.
Definition types.hpp:33
uday_t unixday_t
Alias for Unix day type (uday_t).
Definition types.hpp:43
int tz_t
Type for representing time zone offsets in minutes.
Definition types.hpp:41
int64_t ts_ms_t
Type for representing timestamps in milliseconds.
Definition types.hpp:34
int64_t uday_t
Type for representing Unix days as integers (days since January 1, 1970).
Definition types.hpp:32
double fts_t
Type for representing timestamps as floating-point numbers (e.g., fractional seconds).
Definition types.hpp:36
uint64_t jdn_t
Type for representing Julian Day Numbers as unsigned integers.
Definition types.hpp:40
int64_t ts_us_t
Type for representing timestamps in microseconds.
Definition types.hpp:35
double oadate_t
Type for representing Automation Date (OADate) values as floating-point numbers.
Definition types.hpp:37
int64_t year_t
Type for representing years as integers.
Definition types.hpp:31
double mjd_t
Type for representing Modified Julian Dates as floating-point numbers.
Definition types.hpp:39
double jd_t
Type for representing Julian Dates as floating-point numbers.
Definition types.hpp:38
Main namespace for the Time Shield library.
Definition constants.hpp:12