35 #define TF_CONVERT_CC_VERSION \ 45 "ERROR (double2time): only positive values are accepted");
47 double remain=seconds;
49 thetime_Ts.second=li(seconds);
50 remain-=double(thetime_Ts.second);
52 thetime_Ts.milsec=li(remain);
53 remain-=double(thetime_Ts.milsec);
55 thetime_Ts.micsec=li(remain);
63 retval += 60.*rtime.
minute();
64 retval += 3600.*rtime.
hour();
65 retval += 24.*3600.*rtime.
days();
#define libtime_assert(C, M)
Check an assertion and report by throwing an exception.
double float_second() const
double time2double(const TRelativeTime &rtime)
convert relative time to seconds
TRelativeTime double2time(const double &seconds)
convert seconds to relative time
class to contain relative times