| /onnv/onnv-gate/usr/src/lib/libast/common/tm/ |
| tmequiv.c | 30 #include <tm.h> 50 * return the circa 2000 equivalent calendar year for tm 54 tmequiv(Tm_t* tm) 56 return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->tm_year)];
|
| tmfix.c | 37 * correct out of bounds fields in tm 41 * tm is the return value 45 tmfix(register Tm_t* tm) 58 if (w = !tm->tm_sec && !tm->tm_min && !tm->tm_mday && !tm->tm_year && !tm->tm_yday && !tm->tm_isdst) 60 tm->tm_year = 99 [all...] |
| tmweek.c | 48 * if week<0 then return week for tm 49 * if day<0 then set tm to first day of week 50 * otherwise set tm to day in week 51 * and return tm->tm_yday 55 tmweek(Tm_t* tm, int type, int week, int day) 61 if ((day = tm->tm_wday - tm->tm_yday % 7) < 0) 63 week = (tm->tm_yday + offset[day][type]) / 7; 67 week = (day > 0 && day < 6 || tmisleapyear(tm->tm_year - 1)) ? 53 : 52; 68 else if (week == 53 && (tm->tm_wday + (31 - tm->tm_mday)) < 4 [all...] |
| tmtime.c | 38 tmtime(register Tm_t* tm, int west) 40 return tmxsec(tmxtime(tm, west));
|
| tmxtime.c | 42 * with other tm*() that may return static Tm_t* 46 tmxtime(register Tm_t* tm, int west) 54 struct tm* tl; 58 ts = *tm; 59 to = tm; 60 tm = &ts; 62 tmfix(tm); 63 y = tm->tm_year; 68 if ((n = tm->tm_mon) > 11) 73 t += tm_data.sum[n] + tm->tm_mday - 1 [all...] |
| tmxmake.c | 40 tmxtm(register Tm_t* tm, Time_t t, Tm_zone_t* zone) 42 register struct tm* tp; 68 if (!(tm->tm_zone = zone)) 71 tm->tm_zone = &tm_data.zone[2]; 73 tm->tm_zone = tm_info.zone; 75 if ((o = 60 * tm->tm_zone->west) && x > o) 84 tm->tm_sec = n % 60 + leapsec; 86 tm->tm_min = n % 60; 88 tm->tm_hour = n % 24; 91 tm->tm_sec = x % 60 + leapsec [all...] |
| tmform.c | 33 #include <tm.h>
|
| tmxfmt.c | 116 Tm_t* tm; local 126 tm = tmxtm(&ts, t, NiL); 247 n = TM_DAY_ABBREV + tm->tm_wday; 250 n = TM_DAY + tm->tm_wday; 254 n = TM_MONTH_ABBREV + tm->tm_mon; 257 n = TM_MONTH + tm->tm_mon; 263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad); 266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad); 272 cp = number(cp, ep, (long)tm->tm_mday, 0, width, pad); 275 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad) [all...] |
| tmxdate.c | 120 * normalize <p,q> to power of 10 u in tm 124 powerize(Tm_t* tm, unsigned long p, unsigned long q, unsigned long u) 138 tm->tm_nsec += (int)(t % TMX_RESOLUTION); 139 tm->tm_sec += (int)(t / TMX_RESOLUTION); 159 register Tm_t* tm; local 209 tm = tmxtm(&ts, now, NiL); 210 tm_info.date = tm->tm_zone; 272 now = tmxtime(tm, zone); 285 otm = *tm; 318 tm->tm_sec += (365L*24L*60L*60L) * p / q [all...] |
| /onnv/onnv-gate/usr/src/lib/libast/common/comp/ |
| strftime.c | 30 #include <tm.h> 50 strftime(char* buf, size_t len, const char* format, const struct tm* tm) 59 * nl_langinfo() may call strftime() with bogus tm except for 63 if (tm->tm_sec < 0 || tm->tm_sec > 60 || 64 tm->tm_min < 0 || tm->tm_min > 59 || 65 tm->tm_hour < 0 || tm->tm_hour > 23 | [all...] |
| strptime.c | 48 strptime(const char* s, const char* format, struct tm* ts) 53 Tm_t tm; 55 memset(&tm, 0, sizeof(tm)); 56 tm.tm_sec = ts->tm_sec; 57 tm.tm_min = ts->tm_min; 58 tm.tm_hour = ts->tm_hour; 59 tm.tm_mday = ts->tm_mday; 60 tm.tm_mon = ts->tm_mon; 61 tm.tm_year = ts->tm_year [all...] |
| mktime.c | 30 #include <tm.h> 50 mktime(struct tm* ts) 53 Tm_t tm; 55 tm.tm_sec = ts->tm_sec; 56 tm.tm_min = ts->tm_min; 57 tm.tm_hour = ts->tm_hour; 58 tm.tm_mday = ts->tm_mday; 59 tm.tm_mon = ts->tm_mon; 60 tm.tm_year = ts->tm_year; 61 tm.tm_wday = ts->tm_wday [all...] |
| getdate.c | 30 #include <tm.h> 53 extern struct tm* 59 Tm_t* tm; 61 static struct tm ts; 70 tm = tmmake(&t); 71 ts.tm_sec = tm->tm_sec; 72 ts.tm_min = tm->tm_min; 73 ts.tm_hour = tm->tm_hour; 74 ts.tm_mday = tm->tm_mday; 75 ts.tm_mon = tm->tm_mon [all...] |
| /onnv/onnv-gate/usr/src/common/openssl/crypto/ |
| o_time.h | 64 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
|
| /onnv/onnv-gate/usr/src/lib/libcurses/screen/ |
| _timeout.c | 49 timeout(int tm) 51 wtimeout(stdscr, tm);
|
| wtimeout.c | 48 wtimeout(WINDOW *win, int tm) 50 win->_delay = tm;
|
| /onnv/onnv-gate/usr/src/cmd/oamuser/lib/ |
| vexpire.c | 45 struct tm *tm; local 53 tm = localtime( &now ); 54 now -= tm->tm_hour * 60*60 + tm->tm_min * 60 + tm->tm_sec;
|
| /onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/ |
| strptime.c | 41 static char *yearmatch(/*char *cp, char *format, struct tm *tm, 50 strptime(buf, format, tm) 53 struct tm *tm; 88 tm->tm_wday = i; 107 tm->tm_mon = i; 112 cp = strptime(cp, "%x %X", tm); 118 cp = strptime(cp, dtcp->ldate_format, tm); 125 cp = cvtnum(cp, &tm->tm_mday) [all...] |
| strftime.c | 61 strftime(buf, maxsize, format, tm) 63 struct tm *tm; 87 for (p = dtcp->abbrev_weekday_names[tm->tm_wday]; 96 for (p = dtcp->weekday_names[tm->tm_wday]; 106 for (p = dtcp->abbrev_month_names[tm->tm_mon]; 115 for (p = dtcp->month_names[tm->tm_mon]; 124 i = strftime(cp, maxsize - size, "%x %X", tm); 133 dtcp->ldate_format, tm); 143 cp = itoa(tm->tm_mday, cp, 2) [all...] |
| /onnv/onnv-gate/usr/src/lib/libc/port/gen/ |
| cftime.c | 76 struct tm res; 77 struct tm *p; 89 ascftime(char *buf, const char *format, const struct tm *tm) 96 return ((int)strftime(buf, LONG_MAX, format, tm));
|
| /onnv/onnv-gate/usr/src/lib/libast/common/misc/ |
| debug.c | 46 double tm; local 52 tm = (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec/1000000.0; 54 return prev = tm; 55 return tm - prev;
|
| /onnv/onnv-gate/usr/src/cmd/touch/ |
| touch.c | 282 struct tm tm; local 326 (void) memset(&tm, 0, sizeof (struct tm)); 328 tm.tm_year = atoi(year) - 1900; 329 tm.tm_mon = atoi(month) - 1; 330 tm.tm_mday = atoi(day); 331 tm.tm_hour = atoi(hour); 332 tm.tm_min = atoi(minute); 333 tm.tm_sec = atoi(second) 394 struct tm tm; local 452 struct tm tm; local [all...] |
| /onnv/onnv-gate/usr/src/head/iso/ |
| time_iso.h | 87 struct tm { /* see ctime(3) */ struct in namespace:std 102 extern char *asctime(const struct tm *); 106 extern struct tm *gmtime(const time_t *); 107 extern struct tm *localtime(const time_t *); 108 extern time_t mktime(struct tm *); 111 const struct tm *_RESTRICT_KYWD); 119 extern struct tm *gmtime(); 120 extern struct tm *localtime();
|
| /onnv/onnv-gate/usr/src/lib/libbc/inc/include/ |
| time.h | 36 struct tm { struct 50 extern struct tm *gmtime(), *localtime();
|
| /onnv/onnv-gate/usr/src/lib/libc/inc/ |
| mse_int.h | 38 extern size_t wcsftime(wchar_t *, size_t, const char *, const struct tm *); 40 const struct tm *);
|