/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tmequiv.c | 30 #include <tm.h> 50 * return the circa 2000 equivalent calendar year for tm 54 tmequiv(Tm_t* tm) argument 56 return tm->tm_year < (2038 - 1900) ? (tm->tm_year + 1900) : equiv[tm->tm_wday + tmisleapyear(tm->tm_year)];
|
H A D | tmfix.c | 37 * correct out of bounds fields in tm 41 * tm is the return value 45 tmfix(register Tm_t* tm) argument 58 if (w = !tm->tm_sec && !tm->tm_min && !tm->tm_mday && !tm->tm_year && !tm->tm_yday && !tm->tm_isdst) 60 tm [all...] |
H A D | 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) argument 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 [all...] |
H A D | tmtime.c | 38 tmtime(register Tm_t* tm, int west) argument 40 return tmxsec(tmxtime(tm, west));
|
H A D | tmxtime.c | 42 * with other tm*() that may return static Tm_t* 46 tmxtime(register Tm_t* tm, int west) argument 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 [all...] |
H A D | tmxmake.c | 40 tmxtm(register Tm_t* tm, Time_t t, Tm_zone_t* zone) argument 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 [all...] |
H A D | tmform.c | 33 #include <tm.h>
|
H A D | 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 [all...] |
/illumos-gate/usr/src/lib/libast/common/comp/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
H A D | 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 [all...] |
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | _timeout.c | 49 timeout(int tm) argument 51 wtimeout(stdscr, tm);
|
H A D | wtimeout.c | 48 wtimeout(WINDOW *win, int tm) argument 50 win->_delay = tm;
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | time.c | 31 struct lc_time tm; variable in typeref:struct:lc_time 36 (void) memset(&tm, 0, sizeof (tm)); 52 tm.c_fmt = str; 55 tm.x_fmt = str; 58 tm.X_fmt = str; 61 tm.ampm_fmt = str; 68 tm.date_fmt = str; 108 add_list(tm.mon, str, 12); 111 add_list(tm [all...] |
/illumos-gate/usr/src/cmd/oamuser/lib/ |
H A D | 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;
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | cftime.c | 76 struct tm res; 77 struct tm *p; 89 ascftime(char *buf, const char *format, const struct tm *tm) argument 96 return ((int)strftime(buf, LONG_MAX, format, tm));
|
/illumos-gate/usr/src/head/iso/ |
H A D | time_iso.h | 80 struct tm { /* see ctime(3) */ struct in namespace:std 93 extern char *asctime(const struct tm *); 97 extern struct tm *gmtime(const time_t *); 98 extern struct tm *localtime(const time_t *); 99 extern time_t mktime(struct tm *); 102 const struct tm *_RESTRICT_KYWD);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strptime.c | 55 struct tm *_RESTRICT_KYWD tm, int *_RESTRICT_KYWD flagsp, 96 buf = __strptime(buf, tptr->date_fmt, tm, flagsp, loc); 115 tm->tm_year = i * 100 - 1900; 119 buf = __strptime(buf, tptr->c_fmt, tm, flagsp, loc); 125 buf = __strptime(buf, "%m/%d/%y", tm, flagsp, loc); 143 buf = __strptime(buf, "%Y-%m-%d", tm, flagsp, loc); 149 buf = __strptime(buf, "%H:%M", tm, flagsp, loc); 155 buf = __strptime(buf, tptr->ampm_fmt, tm, flagsp, loc); 161 buf = __strptime(buf, "%H:%M:%S", tm, flags 54 __strptime(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm, int *_RESTRICT_KYWD flagsp, locale_t _RESTRICT_KYWD loc) argument 522 strptime(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm) argument 537 __strptime_dontzero(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm) argument 556 strptime_l(const char *_RESTRICT_KYWD buf, const char *_RESTRICT_KYWD fmt, struct tm *_RESTRICT_KYWD tm, locale_t loc) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | 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;
|
/illumos-gate/usr/src/cmd/touch/ |
H A D | 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 394 struct tm tm; local 452 struct tm tm; local [all...] |
/illumos-gate/usr/src/lib/libbc/inc/include/ |
H A D | time.h | 36 struct tm { struct 50 extern struct tm *gmtime(), *localtime();
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | mse_int.h | 38 extern size_t wcsftime(wchar_t *, size_t, const char *, const struct tm *); 40 const struct tm *);
|