libtime++: Date and time calculation

◆ operator%() [2/2]

TRelativeTime libtime::TRelativeTime::operator% ( const TRelativeTime A) const
inline

Definition at line 496 of file libtime++.h.

References libtime::TBaseClassTime::Mtime_Ts, time_nfit(), time_sub(), and TRelativeTime().

497 {
498  timeint n;
499  time_kernel::time_Ts full, rest;
500  time_kernel::time_nfit(Mtime_Ts, A.Mtime_Ts, &n, &full);
501  time_kernel::time_sub(Mtime_Ts, full, &rest);
502  return(TRelativeTime(rest));
503 }
time_kernel::time_Ts Mtime_Ts
Definition: libtime++.h:140
TRelativeTime(const std::string &Itimestring)
Definition: libtime++.h:392
void time_sub(time_Ts Date1, time_Ts Date2, time_Ts *Pdate3)
Definition: ctime_sub.c:33
integer timeint
Definition: libtime.h:77
void time_nfit(time_Ts Date1, time_Ts Date2, timeint *n, time_Ts *Pfull)
Definition: ctime_nfit.c:36
Here is the call graph for this function: