Home
last modified time | relevance | path

Searched refs:utc (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c92 time_t utc; in get_time() local
102 utc = (year - 70); /* next 3 lines: utc = 365y + y/4 */ in get_time()
103 utc += (utc << 3) + (utc << 6); in get_time()
104 utc += (utc << 2) + ((year - 69) >> 2); in get_time()
105 utc += days_thru_month[month] + day - 1; in get_time()
106 utc = (utc << 3) + (utc << 4) + hour; /* 24 * day + hour */ in get_time()
107 utc = (utc << 6) - (utc << 2) + min; /* 60 * hour + min */ in get_time()
108 utc = (utc << 6) - (utc << 2) + sec; /* 60 * min + sec */ in get_time()
110 return (ctime((time_t *)&utc)); in get_time()
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c1395 utc_to_tod(time_t utc) in utc_to_tod() argument
1409 utc = 0; in utc_to_tod()
1412 saved_utc = utc; in utc_to_tod()
1418 tod.tod_sec = utc % 60; in utc_to_tod()
1444 time_t utc; in tod_to_utc() local
1511 utc += (utc << 3) + (utc << 6); in tod_to_utc()
1512 utc += (utc << 2) + ((year - 69) >> 2); in tod_to_utc()
1514 utc = (utc << 3) + (utc << 4) + tod.tod_hour; /* 24 * day + hour */ in tod_to_utc()
1515 utc = (utc << 6) - (utc << 2) + tod.tod_min; /* 60 * hour + min */ in tod_to_utc()
1516 utc = (utc << 6) - (utc << 2) + tod.tod_sec; /* 60 * min + sec */ in tod_to_utc()
[all …]
/illumos-gate/usr/src/compat/bhyve/sys/
H A Dclock.h78 void timespec2fattime(struct timespec *tsp, int utc, u_int16_t *ddp, u_int16_t *dtp, u_int8_t *dhp);
79 void fattime2timespec(unsigned dd, unsigned dt, unsigned dh, int utc, struct timespec *tsp);
/illumos-gate/usr/src/lib/libsqlite/test/
H A Ddate.test137 # localtime->utc and utc->localtime conversions. These tests only work
150 datetest 6.5 {datetime('2000-10-29 01:59:00','utc')} {2000-10-29 05:59:00}
151 datetest 6.6 {datetime('2000-10-29 02:00:00','utc')} {2000-10-29 07:00:00}
152 datetest 6.7 {datetime('2000-04-02 01:59:00','utc')} {2000-04-02 06:59:00}
153 datetest 6.8 {datetime('2000-04-02 02:00:00','utc')} {2000-04-02 06:00:00}
/illumos-gate/usr/src/cmd/touch/
H A Dtouch.c278 int utc = 0; in parse_datetime() local
302 utc = 1; in parse_datetime()
334 if (utc) { in parse_datetime()
/illumos-gate/usr/src/cmd/th_tools/
H A Dth_define.c1054 time_t utc = time(NULL); in log2errdefs() local
1083 (void) fprintf(fp, "# %-24s%s\n", "Script creation time:", ctime(&utc)); in log2errdefs()
1648 time_t utc = time(NULL); in create_test_file() local
1651 drvname, utc) == -1 || in create_test_file()
1653 drvname, utc) == -1) in create_test_file()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_ami.h169 amiBoolean utc; /* TRUE means UTC time */ member
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/
H A DmDNSPosix.c1386 const mDNSs32 utc = mDNSPlatformUTC(); in SetupInterfaceList() local
1390 if (utc - pi->LastSeen < 60) ri = (PosixNetworkInterface **)&pi->coreIntf.next; in SetupInterfaceList()
/illumos-gate/usr/src/data/zoneinfo/
H A Dsouthamerica326 # decided that next Sunday instead of "staying" @utc-03:00 they will go
327 # to utc-04:00 until the second Saturday in October...