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

Opt-in compatibility aliases for renamed time-conversion helpers. More...

Go to the source code of this file.

Namespaces

namespace  time_shield
 Main namespace for the Time Shield library.
 

Functions

template<class T = year_t>
TIME_SHIELD_CONSTEXPR T time_shield::get_unix_year (ts_t ts) noexcept
 Legacy alias for years_since_epoch.
 
template<class T = dse_t>
TIME_SHIELD_CONSTEXPR T time_shield::get_unix_day (ts_t ts=time_shield::ts()) noexcept
 Legacy alias for days_since_epoch.
 
template<class T = dse_t>
TIME_SHIELD_CONSTEXPR T time_shield::get_unix_day_ms (ts_ms_t ts_ms=time_shield::ts_ms()) noexcept
 Legacy alias for days_since_epoch_ms.
 
template<class T = ts_t>
TIME_SHIELD_CONSTEXPR T time_shield::unix_day_to_timestamp (dse_t unix_day) noexcept
 Legacy alias for unix_day_to_ts.
 
template<class T = ts_t>
TIME_SHIELD_CONSTEXPR T time_shield::unix_day_to_timestamp_ms (dse_t unix_day) noexcept
 Legacy alias for unix_day_to_ts_ms.
 
template<class T = int64_t>
TIME_SHIELD_CONSTEXPR T time_shield::get_unix_min (ts_t ts=time_shield::ts())
 Legacy alias for min_since_epoch.
 
template<class T = year_t>
TIME_SHIELD_CONSTEXPR T time_shield::get_year (ts_t ts=time_shield::ts())
 Legacy alias for year_of.
 
template<class T = year_t>
TIME_SHIELD_CONSTEXPR T time_shield::get_year_ms (ts_ms_t ts_ms=time_shield::ts_ms())
 Legacy alias for year_of_ms.
 
template<class T1 = Weekday, class T2 , typename std::enable_if< std::is_class< T2 >::value, int >::type = 0>
TIME_SHIELD_CONSTEXPR T1 time_shield::get_weekday_from_date (const T2 &date)
 Legacy alias for weekday_of_date.
 
template<class T = Weekday, class U , typename std::enable_if< std::is_integral< U >::value, int >::type = 0>
TIME_SHIELD_CONSTEXPR T time_shield::get_weekday_from_ts (U ts) noexcept
 Legacy alias for weekday_of_ts.
 
template<class T = Weekday>
TIME_SHIELD_CONSTEXPR T time_shield::get_weekday_from_ts_ms (ts_ms_t ts_ms)
 Legacy alias for weekday_of_ts_ms.
 
template<class T = ts_t>
TIME_SHIELD_CONSTEXPR T time_shield::next_day_unix_day (dse_t unix_day) noexcept
 Legacy alias for start_of_next_day_from_unix_day.
 
template<class T = ts_t>
TIME_SHIELD_CONSTEXPR T time_shield::next_day_unixday (dse_t unix_day) noexcept
 Legacy alias for start_of_next_day_from_unix_day.
 
template<class T = ts_ms_t>
TIME_SHIELD_CONSTEXPR T time_shield::next_day_unix_day_ms (dse_t unix_day) noexcept
 Legacy alias for start_of_next_day_from_unix_day_ms.
 
template<class T = ts_ms_t>
TIME_SHIELD_CONSTEXPR T time_shield::next_day_unixday_ms (dse_t unix_day) noexcept
 Legacy alias for start_of_next_day_from_unix_day_ms.
 

Detailed Description

Opt-in compatibility aliases for renamed time-conversion helpers.

Define TIME_SHIELD_ENABLE_LEGACY_ALIASES before including this header, time_shield/conversions.hpp, or time_shield.hpp to make the aliases available.

Definition in file legacy_aliases.hpp.