ftime
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The ftime function gets the current time and stores it in the
structure pointed to by <timeptr>. The timeb structure is defined
in SYS\TIMEB.H. It contains four fields--dstflag, millitm, time,
and timezone--which have the following values:
Field Value
dstflag Nonzero if daylight saving time is currently in
effect for the local time zone. (See tzset for an
explanation of how daylight saving time is
determined.)
millitm Fraction of a second in milliseconds. The last digit
is always zero, as millitm is incremented to the
nearest one-hundredth of a second.
time The time in seconds since 00:00:00 Greenwich mean
time, January 1, 1970.
timezone The difference in minutes, moving westward, between
Greenwich mean time and local time. The value of
timezone is set from the value of the global
variable timezone (see tzset).
Return Value
The ftime function gives values to the fields in the structure
pointed to by <timeptr>. It does not return a value.
-♦-