/haiku/src/system/libroot/posix/musl/time/ |
H A D | asctime.c | 3 char *asctime(const struct tm *tm) argument 6 return asctime_r(tm, buf);
|
H A D | time_impl_haiku.h | 2 __tm_to_tzname(const struct tm *tm) argument 4 const void *p = tm->tm_zone; 7 if (tm->tm_isdst >= 0) 8 return tzname[tm->tm_isdst != 0];
|
H A D | asctime_r.c | 8 char *__asctime_r(const struct tm *restrict tm, char *restrict buf) argument 11 __nl_langinfo_l(ABDAY_1+tm->tm_wday, C_LOCALE), 12 __nl_langinfo_l(ABMON_1+tm->tm_mon, C_LOCALE), 13 tm->tm_mday, tm->tm_hour, 14 tm->tm_min, tm->tm_sec, 15 1900 + tm->tm_year) >= 26) 19 * is _supposed_ to crash if the fields in tm ar [all...] |
H A D | time_impl.h | 10 hidden long long __tm_to_secs(const struct tm *); 11 hidden int __secs_to_tm(long long, struct tm *); 12 hidden size_t __strftime_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc); 13 hidden const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int);
|
H A D | __tm_to_secs.c | 3 long long __tm_to_secs(const struct tm *tm) argument 6 long long year = tm->tm_year; 7 int month = tm->tm_mon; 20 t += 86400LL * (tm->tm_mday-1); 21 t += 3600LL * tm->tm_hour; 22 t += 60LL * tm->tm_min; 23 t += tm->tm_sec;
|
H A D | strftime.c | 19 static int week_num(const struct tm *tm) argument 21 int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7; 24 if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2) 32 int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7; 33 if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1))) 40 int jan1 = (tm 47 __strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc, int pad) argument 217 __strftime_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc) argument 280 strftime(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm) argument [all...] |
H A D | strptime.c | 10 char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm) argument 36 dest = &tm->tm_wday; 48 dest = &tm->tm_mon; 57 s = strptime(s, nl_langinfo(D_T_FMT), tm); 66 dest = &tm->tm_mday; 71 s = strptime(s, "%m/%d/%y", tm); 75 dest = &tm->tm_hour; 80 dest = &tm->tm_hour; 85 dest = &tm [all...] |
H A D | __secs_to_tm.c | 11 int __secs_to_tm(long long t, struct tm *tm) argument 71 tm->tm_year = years + 100; 72 tm->tm_mon = months + 2; 73 tm->tm_mday = remdays + 1; 74 tm->tm_wday = wday; 75 tm->tm_yday = yday; 77 tm->tm_hour = remsecs / 3600; 78 tm->tm_min = remsecs / 60 % 60; 79 tm [all...] |
H A D | wcsftime.c | 8 size_t __wcsftime_l(wchar_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc) argument 39 t_mb = __strftime_fmt_1(&buf, &k, *f, tm, loc, pad); 47 if (plus && tm->tm_year >= 10000-1900) 49 else if (tm->tm_year < -1900) 67 size_t wcsftime(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f, const struct tm *restrict tm) argument 69 return __wcsftime_l(wcs, n, f, tm, CURRENT_LOCALE);
|
/haiku/headers/compatibility/bsd/ |
H A D | time.h | 20 time_t timelocal(struct tm *tm); 21 time_t timegm(struct tm *tm);
|
/haiku/src/system/libroot/posix/time/ |
H A D | localtime_fallback.c | 25 struct tm * 26 __gmtime_r_fallback(const time_t *restrict t, struct tm *restrict tm) argument 28 if (__secs_to_tm(*t, tm) < 0) { 32 tm->tm_isdst = 0; 33 tm->__tm_gmtoff = 0; 34 tm->__tm_zone = __utc; 35 return tm; 40 __mktime_fallback(struct tm *tm) argument 68 __timegm_fallback(struct tm *tm) argument [all...] |
H A D | ctime.c | 20 struct tm tm; local 21 return asctime_r(localtime_r(_timer, &tm), buf);
|
H A D | localtime.cpp | 38 extern "C" struct tm* __gmtime_r_fallback(const time_t* timep, struct tm* tmp); 39 extern "C" time_t __mktime_fallback(struct tm* tmp); 40 extern "C" time_t __timegm_fallback(struct tm* tmp); 56 extern "C" struct tm* 59 static tm tm; local 61 return localtime_r(inTime, &tm); 65 extern "C" struct tm* 66 localtime_r(const time_t* inTime, struct tm* tmOu 95 static tm tm; local [all...] |
/haiku/headers/private/kernel/boot/ |
H A D | images.h | 13 # include <boot/images-tm.h> 15 # include <boot/images-tm-development.h> 18 # include <boot/images-sans-tm.h>
|
/haiku/src/apps/poorman/libhttpd/ |
H A D | tdate_parse.c | 195 tm_to_time( struct tm* tmP ) 224 struct tm tm; local 232 (void) memset( (char*) &tm, 0, sizeof(struct tm) ); 249 tm.tm_mday = tm_mday; 250 tm.tm_mon = tm_mon; 251 tm.tm_year = tm_year; 252 tm.tm_hour = tm_hour; 253 tm [all...] |
/haiku/headers/posix/ |
H A D | time.h | 56 struct tm { struct 83 extern time_t mktime(struct tm *tm); 85 extern char *asctime(const struct tm *tm); 86 extern char *asctime_r(const struct tm *timep, char *buffer); 89 extern struct tm *gmtime(const time_t *timer); 90 extern struct tm *gmtime_r(const time_t *timer, struct tm *tm); [all...] |
/haiku/headers/private/libroot/locale/ |
H A D | ICUTimeConversion.h | 32 struct tm* tmOut); 33 status_t Gmtime(const time_t* inTime, struct tm* tmOut); 35 status_t Mktime(struct tm* inOutTm, time_t& timeOut); 37 status_t Timegm(struct tm* inOutTm, time_t& timeOut); 42 const time_t* inTime, struct tm* tmOut); 46 struct tm* inOutTm, time_t& timeOut);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | tst-mktime.c | 9 struct tm time_str, *tm; local 37 tm = localtime (&t); 38 if (tm == NULL) 45 time_str = *tm;
|
/haiku/src/system/libroot/posix/wchar/ |
H A D | wcsftime.cpp | 11 const struct tm* time)
|
/haiku/headers/private/fs_shell/ |
H A D | fssh_time.h | 64 extern fssh_time_t fssh_mktime(struct fssh_tm *tm); 66 extern char *fssh_asctime(const struct fssh_tm *tm); 73 struct fssh_tm *tm); 76 struct fssh_tm *tm); 78 const char *format, const struct fssh_tm *tm); 80 struct fssh_tm *tm);
|
/haiku/src/bin/ |
H A D | dstcheck.cpp | 87 struct tm tm; local 90 localtime_r(&t, &tm); 105 struct tm tm; local 108 localtime_r(&t, &tm); 110 if (tm.tm_year < (2020 - 1900)) { 138 dst = tm.tm_isdst; 141 if (dst != tm.tm_isdst || argc > 1) { 158 char dst_byte = tm [all...] |
/haiku/src/bin/unzip/ |
H A D | timezone.h | 65 int _isindst OF((struct tm *tb)); 79 time_t mkgmtime OF((struct tm *tm));
|
H A D | timezone.c | 526 static struct tm _tmbuf; 528 struct tm *gmtime(when) 556 struct tm *localtime(when) 561 struct tm *ret; 581 struct tm *tb; 583 time_t localt; /* time_t equivalent of given tm struct */ 624 of the local time and date in the exploded time structure `tm', 625 adjust out of range fields in `tm' and set `tm->tm_yday', `tm [all...] |
/haiku/headers/private/kernel/ |
H A D | real_time_clock.h | 31 // Both functions use the passed struct tm only partially 33 uint32 rtc_tm_to_secs(const struct tm *t); 34 void rtc_secs_to_tm(uint32 seconds, struct tm *t);
|
/haiku/src/build/libroot/ |
H A D | misc.cpp | 40 struct timeval tm; local 41 gettimeofday(&tm, NULL); 42 return (int64)tm.tv_sec * 1000000LL + (int64)tm.tv_usec;
|