22.214.171.124 Time Functions
All time reporting functions report the absolute time value (as if time would
be positively defined). Time orientation (or sign, or signedness) may be
obtained via `t_sign'.
- void `t_copy'(time t, time
sets t to s
- mode `t_d_hour'(time t);
is the t hour of the day (0 .. 23)
- mode `t_day'(time t);
is the t day
- void `t_ddiff'(time t, date
d, date e);
sets t to the d e difference (the sign of the difference is
- void `t_fix'(time t, mode
second, mode microsecond);
sets t to second seconds and microsecond seconds. The
absolute value of microsecond is not restricted to the 0 .. 999999 range.
Both second and microsecond may be negatively defined.
- mode `t_h_minute'(time t);
is the t minute of the hour (0 .. 59)
- mode `t_m_second'(time t);
is the t second of the minute (0 .. 60)
- mode `t_microsecond'(time t);
is the t microsecond
- mode `t_s_frame'(time t);
is the t frame of the second (0 .. 59) (here frame is the sixtieth
part of the second)
- mode `t_second'(time t);
is the t second
- void `t_set'(time &t, time
sets the t time object as a reference of the h time object
The function is generated on request only.
See Time Library Generation Flags.
- mode `t_sign'(time t);
is -1 if t is negatively defined, 1 if t is (strictly) positively
defined and zero if t is zero