29 m_hours = std::chrono::hours(0);
47 return std::chrono::time_point_cast<std::chrono::microseconds>(std::chrono::system_clock::now());
76 tp += std::chrono::seconds(t);
94 std::chrono::nanoseconds diff = tp - date::floor<date::days>(tp);
96 timeStamp.
m_hours = std::chrono::duration_cast<std::chrono::hours>(diff);
97 diff = diff - std::chrono::duration_cast<std::chrono::hours>(diff);
99 timeStamp.
m_minutes = std::chrono::duration_cast<std::chrono::minutes>(diff);
100 diff = diff - std::chrono::duration_cast<std::chrono::minutes>(diff);
102 timeStamp.
m_seconds = std::chrono::duration_cast<std::chrono::seconds>(diff);
103 diff = diff - std::chrono::duration_cast<std::chrono::seconds>(diff);
105 timeStamp.
m_millisecs = std::chrono::duration_cast<std::chrono::milliseconds>(diff);
106 diff = diff - std::chrono::duration_cast<std::chrono::milliseconds>(diff);
108 timeStamp.
m_microsecs = std::chrono::duration_cast<std::chrono::microseconds>(diff);
125 tp += std::chrono::seconds(t);
161 return tp.time_since_epoch().count();
175 return tp.time_since_epoch().count() * std::micro::num / (double)std::micro::den;
191 tp += std::chrono::microseconds((int64_t)
std::rint(d * std::micro::den / std::micro::num));
208 date::sys_days _sys_days = std::chrono::time_point_cast<date::days>(tp);
223 date::sys_days _sys_days = std::chrono::time_point_cast<date::days>(tp);
237 TIME_ZONE_INFORMATION timezone;
238 int res = GetTimeZoneInformation(&timezone);
241 tz.Bias = std::chrono::minutes(timezone.Bias);
242 tz.DayLightBias = res == TIME_ZONE_ID_DAYLIGHT ? std::chrono::minutes(timezone.DaylightBias) : std::chrono::minutes(0);
CONSTCD11 unsigned iso_encoding() const NOEXCEPT
sys_time< days > sys_days
value_type rint(value_type v)
This structure defines all fields necessary to create a time stamp or a formatted date.
time_stamp()
Default constructor for zero-initialisation.
date::year_month_day m_ymd
std::chrono::microseconds m_microsecs
std::chrono::minutes m_minutes
std::chrono::seconds m_seconds
std::chrono::hours m_hours
std::chrono::milliseconds m_millisecs
This structure defines the information for a time zone.