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

Fast date conversion helpers. More...

Go to the source code of this file.

Classes

struct  time_shield::detail::DaySplit
 
struct  time_shield::detail::FastDate
 

Namespaces

namespace  time_shield
 Main namespace for the Time Shield library.
 
namespace  time_shield::detail
 
namespace  time_shield::detail::anonymous_namespace{fast_date.hpp}
 

Functions

TIME_SHIELD_CONSTEXPR DaySplit time_shield::detail::split_unix_day (ts_t p_ts) noexcept
 Split UNIX seconds into whole days and seconds-of-day.
 
TIME_SHIELD_CONSTEXPR int64_t time_shield::detail::fast_days_from_date_constexpr (int64_t p_year, int p_month, int p_day) noexcept
 Convert date to days since Unix epoch using a fast constexpr algorithm.
 
int64_t time_shield::detail::fast_days_from_date (int64_t p_year, int p_month, int p_day) noexcept
 Convert date to days since Unix epoch using a fast algorithm.
 
TIME_SHIELD_CONSTEXPR FastDate time_shield::detail::fast_date_from_days_constexpr (int64_t p_days) noexcept
 Convert days since Unix epoch to date using a fast constexpr algorithm.
 
FastDate time_shield::detail::fast_date_from_days (int64_t p_days) noexcept
 Convert days since Unix epoch to date using a fast algorithm.
 
TIME_SHIELD_CONSTEXPR int64_t time_shield::detail::fast_year_from_days_constexpr (int64_t p_days) noexcept
 Convert days since Unix epoch to year using a fast constexpr algorithm.
 
int64_t time_shield::detail::fast_year_from_days (int64_t p_days) noexcept
 Convert days since Unix epoch to year using a fast algorithm.
 

Variables

constexpr int16_t time_shield::detail::anonymous_namespace{fast_date.hpp}::k_doy_from_march [12]
 

Detailed Description

Fast date conversion helpers.

Definition in file fast_date.hpp.