From dac6dc4f626a70c065b86bbfd97a068b5c6965e6 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 23 Apr 2017 12:27:42 +1000 Subject: srcclean (nw) --- src/lib/util/timeconv.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/lib/util/timeconv.h') diff --git a/src/lib/util/timeconv.h b/src/lib/util/timeconv.h index e2f6a987135..7f9a7830b8e 100644 --- a/src/lib/util/timeconv.h +++ b/src/lib/util/timeconv.h @@ -21,7 +21,7 @@ namespace util { /*************************************************************************** - GLOBAL VARIABLES + GLOBAL VARIABLES ***************************************************************************/ extern std::chrono::system_clock::duration system_clock_adjustment; @@ -35,18 +35,18 @@ typedef std::chrono::duration > ntfs_dura //--------------------------------------------------------- -// arbitrary_clock - an std::chrono clock that "knows" the -// date of the epoch's begining +// arbitrary_clock - an std::chrono clock that "knows" the +// date of the epoch's begining //--------------------------------------------------------- template class arbitrary_clock { public: - typedef Rep rep; - typedef Ratio period; - typedef std::chrono::duration duration; - typedef std::chrono::time_point time_point; + typedef Rep rep; + typedef Ratio period; + typedef std::chrono::duration duration; + typedef std::chrono::time_point time_point; static constexpr int base_year = Y; static constexpr int base_month = M; static constexpr int base_day = D; @@ -55,8 +55,8 @@ public: static constexpr int base_second = S; //--------------------------------------------------------- - // from_arbitrary_time_point - converts an arbitrary_clock - // with a different scale to this arbitrary_clock's scale + // from_arbitrary_time_point - converts an arbitrary_clock + // with a different scale to this arbitrary_clock's scale //--------------------------------------------------------- template @@ -75,8 +75,8 @@ public: //--------------------------------------------------------- - // to_arbitrary_time_point - converts an arbitrary_clock - // of this scale to one of different scale + // to_arbitrary_time_point - converts an arbitrary_clock + // of this scale to one of different scale //--------------------------------------------------------- template @@ -87,7 +87,7 @@ public: //--------------------------------------------------------- - // to_tm - formats a structure of type 'struct tm' + // to_tm - formats a structure of type 'struct tm' //--------------------------------------------------------- static struct tm to_tm(const time_point &tp) @@ -106,7 +106,7 @@ public: //--------------------------------------------------------- - // to_system_clock - converts to a system_clock time_point + // to_system_clock - converts to a system_clock time_point //--------------------------------------------------------- static std::chrono::time_point to_system_clock(const time_point &tp) @@ -124,7 +124,7 @@ public: } //--------------------------------------------------------- - // from_system_clock - converts from a system_clock time_point + // from_system_clock - converts from a system_clock time_point //--------------------------------------------------------- static time_point from_system_clock(const std::chrono::time_point &tp) @@ -138,13 +138,13 @@ private: // // * years with leap years are at the end of every quadyear // * quadyears without leap years are at the end of every century - // * centuries where the last quadyear has a leap year at the end are at the - // end of every quadcentury + // * centuries where the last quadyear has a leap year at the end are at the + // end of every quadcentury typedef arbitrary_clock > tm_conversion_clock; //--------------------------------------------------------- - // internal_to_tm - formats a structure of type 'struct tm' - // based on a normalized clock + // internal_to_tm - formats a structure of type 'struct tm' + // based on a normalized clock //--------------------------------------------------------- static struct tm internal_to_tm(std::chrono::duration > duration) @@ -217,8 +217,8 @@ private: typedef arbitrary_clock system_conversion_clock; //------------------------------------------------- - // absolute_day - returns the absolute day count - // for the specified year/month/day + // absolute_day - returns the absolute day count + // for the specified year/month/day //------------------------------------------------- static int64_t absolute_day(int year, int month, int day) -- cgit v1.2.3-70-g09d2