NAME
A class of omni::chrono
MEMBERS
omni::chrono::span
A class of omni::chrono
#include <omni/chrono/span.hpp>class omni::chrono::spanMEMBERS
omni::chrono::span::span()
omni::chrono::span::~span()
omni::chrono::span<TickType>& omni::chrono::span::add(const omni::chrono::span<TickType>& other)
bool omni::chrono::span::can_negate()
span_t omni::chrono::span::days()
omni::chrono::span<TickType> omni::chrono::span::duration()
static inline omni::chrono::span<TickType> omni::chrono::span::from_days(double value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_hours(double value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_microseconds(span_t value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_milliseconds(double value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_minutes(double value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_nanoseconds(span_t value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_seconds(double value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_ticks(span_t value)
static inline omni::chrono::span<TickType> omni::chrono::span::from_time(span_t hours, span_t minutes, span_t seconds)
uint64_t omni::chrono::span::hash()
uint64_t omni::chrono::span::hash_code()
span_t omni::chrono::span::hours()
static inline span_t omni::chrono::span::max_milliseconds()
static inline span_t omni::chrono::span::max_seconds()
static inline omni::chrono::span<TickType> omni::chrono::span::max_value()
span_t omni::chrono::span::milliseconds()
static inline span_t omni::chrono::span::min_milliseconds()
static inline span_t omni::chrono::span::min_seconds()
static inline omni::chrono::span<TickType> omni::chrono::span::min_value()
span_t omni::chrono::span::minutes()
omni::chrono::span<TickType> omni::chrono::span::negate()
static omni::chrono::span<TickType> omni::chrono::span::parse(const std::string& s)
span_t omni::chrono::span::seconds()
omni::chrono::span<TickType>& omni::chrono::span::subtract(const omni::chrono::span<TickType>& other)
void omni::chrono::span::swap(omni::chrono::span<TickType>& o)
span_t omni::chrono::span::ticks()
std::string omni::chrono::span::to_string()
omni::string_t omni::chrono::span::to_string_t()
std::wstring omni::chrono::span::to_wstring()
double omni::chrono::span::total_days()
double omni::chrono::span::total_hours()
double omni::chrono::span::total_milliseconds()
double omni::chrono::span::total_minutes()
double omni::chrono::span::total_seconds()
static bool omni::chrono::span::try_parse(const std::string& s, omni::chrono::span<TickType>& result)
uint64_t omni::chrono::span::type()
static inline omni::chrono::span<TickType> omni::chrono::span::zero()
omni::chrono::span::operator std::string()
omni::chrono::span::operator std::wstring()
bool omni::chrono::span::operator!=(const omni::chrono::span<TickType>& other)
omni::chrono::span<TickType> omni::chrono::span::operator+(const omni::chrono::span<TickType>& other)
omni::chrono::span<TickType>& omni::chrono::span::operator+=(const omni::chrono::span<TickType>& other)
omni::chrono::span<TickType> omni::chrono::span::operator-(const omni::chrono::span<TickType>& other)
omni::chrono::span<TickType>& omni::chrono::span::operator-=(const omni::chrono::span<TickType>& other)
bool omni::chrono::span::operator<(const omni::chrono::span<TickType>& other)
friend std::ostream& omni::chrono::span::operator<<(std::ostream& s, const omni::chrono::span<TickType>& c)
bool omni::chrono::span::operator<=(const omni::chrono::span<TickType>& other)
omni::chrono::span<TickType>& omni::chrono::span::operator=(const omni::chrono::span<TickType>& other)
bool omni::chrono::span::operator==(const omni::chrono::span<TickType>& other)
bool omni::chrono::span::operator>(const omni::chrono::span<TickType>& other)
bool omni::chrono::span::operator>=(const omni::chrono::span<TickType>& other)
omni::chrono::span::disposing
omni::chrono::span::name
omni::chrono::span::span_t
DESCRIPTION
The span class can maintain days, hours, minutes and seconds and are representative of an arbitrary time. That is, the span can be a 0
top
The span class can maintain days, hours, minutes and seconds and are representative of an arbitrary time. That is, the span can be a 0
time, a negative or positive value and are not based on any calendar date. A "day" for this class is considered exactly 24 hours with exactly 60 minutes per "hour", 60 seconds per "minute" and 1000 milliseconds per "second", regardless of the underlying type.
top
PARAMETERS
top
TickType - The template parameter to define the underlying type this span will represent.
top
NOTES
Since this class is representative of an arbitrary time, only days, hours, minutes, seconds and milliseconds are able to be represented. Years are not represented as they can vary, with leap years and different calendar types, the span is a more simplistic representation of time. If you wish to operate on years, or have a more robust date and time represented, you should use the
top
Since this class is representative of an arbitrary time, only days, hours, minutes, seconds and milliseconds are able to be represented. Years are not represented as they can vary, with leap years and different calendar types, the span is a more simplistic representation of time. If you wish to operate on years, or have a more robust date and time represented, you should use the
omni::chrono::date_time class.
top