ftime
| Date and Time Functions |
Prints time information to a structure.
void ftime( struct _timeb *time1);
| time1 | A time structure. |
For ftime details, refer to your C language documentation.
Return Values
A pointer to a tm structure.
Example
The following example uses ftime to print out some details of the system time.
#include <stdio.h>
#include <time.h>
struct _timeb {
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
};struct _timeb t;
// Sets variables used by ftime
_tzset();
ftime( &t );
lr_message ("Plus milliseconds: %u", t.millitm);
lr_message ("Timezone difference from UTC: %d secs", t.timezone);
lr_message ("Daylight savings: %s", t.dstflag ? "YES" : "NO");}Example: Output:
Plus milliseconds: 637
Timezone difference from UTC: -120 secs
Daylight savings: NO

