MCPcopy Create free account
hub / github.com/HowardHinnant/date / MonthDayTime

Method MonthDayTime

src/tz.cpp:947–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945// MonthDayTime
946
947detail::MonthDayTime::MonthDayTime(local_seconds tp, tz timezone)
948 : zone_(timezone)
949{
950 using namespace date;
951 const auto dp = date::floor<days>(tp);
952 const auto hms = make_time(tp - dp);
953 const auto ymd = year_month_day(dp);
954 u = ymd.month() / ymd.day();
955 h_ = hms.hours();
956 m_ = hms.minutes();
957 s_ = hms.seconds();
958}
959
960detail::MonthDayTime::MonthDayTime(const date::month_day& md, tz timezone)
961 : zone_(timezone)

Callers

nothing calls this directly

Calls 3

year_month_dayClass · 0.50
monthMethod · 0.45
dayMethod · 0.45

Tested by

no test coverage detected