19#ifndef MTCORE_CALENDARS_ZONED_HPP
20#define MTCORE_CALENDARS_ZONED_HPP
40 const auto sign = (
offsetVal.hours >= 0) ? 1 : -1;
82 return std::strong_ordering::equivalent;
constexpr i32 NANOS_PER_SECOND
Number of nanoseconds per second.
constexpr auto nullopt
Placeholder value for an empty Optional.
constexpr Slice< const char32_t > slice_from(char32_t *cstr)
Creates a slice from a utf32 string in the form of a c string.
Success< void > success()
Creates a successful void Result object.
Error< Underlying > error(Underlying err)
Creates an error.
int32_t i32
Alias for 32-bit ints.
int64_t i64
Alias for 64-bit ints.
uint8_t u8
Alias for 8-bit unsigned ints.
double f64
Alias for 64-bit floats.
int8_t i8
Alias for 8-bit ints.
Namespace for calendaring systems.
Represents a value that may or may not exist (an "Optional" value) Similar concept to std::optional,...
Represents a Result that may have an error (error code) or a success value A type of "void" means the...
constexpr f64 offset_in_hours() const
constexpr auto offset() const
Optional< Slice< const char > > name
constexpr auto operator<=>(const TimeZone &tz) const
constexpr i32 offset_in_seconds() const
struct mtcore::calendars::TimeZone::OffsetHMS offsetVal
constexpr f64 offset_in_minutes() const
constexpr Result< void, TimeValidationError > try_validate() const
constexpr i64 offset_in_nanoseconds() const