-#else // KM_WIN32
-
-#include <time.h>
-
-#define TIMESTAMP_TO_CALTIME(ts, ct) \
- (ct)->date.year = (ts).Year; /* year */ \
- (ct)->date.month = (ts).Month; /* month of year (1 - 12) */ \
- (ct)->date.day = (ts).Day; /* day of month (1 - 31) */ \
- (ct)->hour = (ts).Hour; /* hours (0 - 23) */ \
- (ct)->minute = (ts).Minute; /* minutes (0 - 59) */ \
- (ct)->second = (ts).Second; /* seconds (0 - 60) */ \
- (ct)->offset = 0;
-
-#define CALTIME_TO_TIMESTAMP(ct, ts) \
- assert((ct)->offset == 0); \
- (ts).Year = (ct)->date.year; /* year */ \
- (ts).Month = (ct)->date.month; /* month of year (1 - 12) */ \
- (ts).Day = (ct)->date.day; /* day of month (1 - 31) */ \
- (ts).Hour = (ct)->hour; /* hours (0 - 23) */ \
- (ts).Minute = (ct)->minute; /* minutes (0 - 59) */ \
- (ts).Second = (ct)->second; /* seconds (0 - 60) */
-
-
-//
-Kumu::Timestamp::Timestamp() :
- Year(0), Month(0), Day(0), Hour(0), Minute(0), Second(0)
-{
- Kumu::TAI::tai now;
- Kumu::TAI::caltime ct;
- now.now();
- ct = now;
- CALTIME_TO_TIMESTAMP(&ct, *this)