2 * UNIX-style Time Functions
8 #include "vms_unix_time.h"
11 * gettimeofday(2) - Returns the current time
13 * NOTE: The timezone portion is useless on VMS.
14 * Even on UNIX, it is only provided for backwards
15 * compatibilty and is not guaranteed to be correct.
18 #if (__VMS_VER < 70000000)
19 int gettimeofday(tv, tz)
29 tv->tv_sec = tmp_time.time;
30 tv->tv_usec = tmp_time.millitm * 1000;
35 tz->tz_minuteswest = tmp_time.timezone;
36 tz->tz_dsttime = tmp_time.dstflag;
41 } /*** End gettimeofday() ***/