13 namespace duds {
namespace time {
namespace interstellar {
31 unsigned int e10 : 25;
77 template <
class Rep,
class Period>
78 Hectoform(
const std::chrono::duration<Rep, Period> &d) {
87 template <
class Clock,
class Duration>
88 Hectoform(
const std::chrono::time_point<Clock, Duration> &t) {
108 s = (
unsigned int)(sec % 100);
110 h = (
unsigned int)(sec % 100);
112 ma = (
unsigned int)(sec % 100);
114 M = (
unsigned int)(sec % 100);
116 e8 = (
unsigned int)(sec % 100);
117 e10 = (
unsigned int)(sec / 100);
125 template <
class Duration>
127 std::chrono::duration<typename Duration::rep> sec =
128 std::chrono::duration_cast<std::chrono::seconds>(d);
131 template <
class Time>
133 std::chrono::duration<typename Time::rep> sec =
134 std::chrono::duration_cast<std::chrono::seconds>(d.time_since_epoch());
std::ostream & operator<<(std::ostream &os, const Hectoform &h)
Writes the Hectoform time in its Human readable format in plain text.