Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
Date.hpp File Reference
#include <toolbox/sys/Time.hpp>
#include <toolbox/util/IntTypes.hpp>
Include dependency graph for Date.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toolbox::sys::IsoDatePolicy
 
struct  toolbox::sys::JDayPolicy
 

Namespaces

namespace  toolbox
 
namespace  toolbox::sys
 

Typedefs

using toolbox::sys::IsoDate = IntWrapper< IsoDatePolicy >
 ISO8601 date in yyymmdd format.
 
using toolbox::sys::JDay = IntWrapper< JDayPolicy >
 Julian day.
 

Functions

constexpr auto toolbox::sys::operator""_ymd (unsigned long long val) noexcept
 
constexpr auto toolbox::sys::operator""_jd (unsigned long long val) noexcept
 
constexpr auto toolbox::sys::ymd_to_iso (int year, int mon, int mday) noexcept
 Gregorian to ISO8601 date.
 
constexpr auto toolbox::sys::ymd_to_jd (int year, int mon, int mday) noexcept
 Gregorian date to Julian day.
 
constexpr auto toolbox::sys::iso_to_jd (IsoDate iso) noexcept
 ISO8601 to Julian day.
 
constexpr auto toolbox::sys::jd_to_iso (JDay jd) noexcept
 Julian day to ISO8601.
 
constexpr std::int32_t toolbox::sys::jd_to_mjd (JDay jd) noexcept
 Juilian day to Modified Julian day. Epoch is November 17, 1858.
 
constexpr auto toolbox::sys::mjd_to_jd (std::int32_t mjd) noexcept
 Modified Julian day to Julian day. Epoch is November 17, 1858.
 
constexpr std::int32_t toolbox::sys::jd_to_tjd (JDay jd) noexcept
 Julian day to Truncated Julian day. Epoch is May 24, 1968.
 
constexpr JDay toolbox::sys::tjd_to_jd (std::int32_t tjd) noexcept
 Truncated Julian day to Julian day. Epoch is May 24, 1968.
 
constexpr WallTime toolbox::sys::jd_to_time (JDay jd) noexcept
 Julian day to Unix time.
 
constexpr IsoDate toolbox::sys::maybe_jd_to_iso (JDay jd) noexcept
 Julian day to ISO8601 if argument is non-zero.
 
constexpr JDay toolbox::sys::maybe_iso_to_jd (IsoDate iso) noexcept
 ISO8601 to Julian day if argument is non-zero.
 
constexpr bool toolbox::sys::is_week_day (JDay jday) noexcept
 
constexpr bool toolbox::sys::is_weekend_day (JDay jday) noexcept
 
constexpr auto toolbox::sys::parse_date (std::string_view sv) noexcept
 
constexpr std::optional< WallTimetoolbox::sys::parse_time (std::string_view sv) noexcept