13 namespace duds {
namespace time {
namespace interstellar {
62 template <
class Rep,
class Period>
63 Metricform(
const std::chrono::duration<Rep, Period> &d) {
72 template <
class Clock,
class Duration>
73 Metricform(
const std::chrono::time_point<Clock, Duration> &t) {
93 s = (
unsigned int)(sec % 1000);
95 k = (
unsigned int)(sec % 1000);
97 M = (
unsigned int)(sec % 1000);
98 G = (
unsigned int)(sec / 1000);
106 template <
class Duration>
108 std::chrono::duration<typename Duration::rep> sec =
109 std::chrono::duration_cast<std::chrono::seconds>(d);
112 template <
class Time>
114 std::chrono::duration<typename Time::rep> sec =
115 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.