Searched refs:tm (Results 1 - 25 of 81) sorted by relevance

1234

/haiku/src/system/libroot/posix/time/
H A Dasctime.cpp20 print_time(char* buffer, size_t bufferSize, const struct tm* tm) argument
23 tm->tm_wday < 0 ? "???" : gPosixLCTimeInfo.wday[tm->tm_wday % 7],
24 tm->tm_mon < 0 ? "???" : gPosixLCTimeInfo.mon[tm->tm_mon % 12],
25 tm->tm_mday, tm->tm_hour, tm->tm_min, tm
33 asctime(const struct tm* tm) argument
50 asctime_r(const struct tm* tm, char* buffer) argument
[all...]
H A Dctime.c20 struct tm tm; local
21 return asctime_r(localtime_r(_timer, &tm), buf);
H A Dlocaltime.cpp38 extern "C" struct tm* __gmtime_r_fallback(const time_t* timep, struct tm* tmp);
39 extern "C" time_t __mktime_fallback(struct tm* tmp);
55 extern "C" struct tm*
58 static tm tm; local
60 return localtime_r(inTime, &tm);
64 extern "C" struct tm*
65 localtime_r(const time_t* inTime, struct tm* tmOut)
88 extern "C" struct tm*
91 static tm tm; local
[all...]
H A Dstrptime.c42 static char * _strptime(const char *, const char *, struct tm *, int *);
47 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp) argument
84 buf = _strptime(buf, tptr->date_fmt, tm, GMTp);
103 tm->tm_year = i * 100 - 1900;
107 buf = _strptime(buf, tptr->c_fmt, tm, GMTp);
113 buf = _strptime(buf, "%m/%d/%y", tm, GMTp);
131 buf = _strptime(buf, "%Y-%m-%d", tm, GMTp);
137 buf = _strptime(buf, "%H:%M", tm, GMTp);
143 buf = _strptime(buf, tptr->ampm_fmt, tm, GMT
489 strptime(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm) argument
[all...]
H A Dlocaltime_fading_out.c59 ** 5. They might reference tm.TM_ZONE after calling offtime.
139 static struct tm * gmtsub P((const time_t * timep, long offset,
140 struct tm * tmp));
141 static struct tm * localsub P((const time_t * timep, long offset,
142 struct tm * tmp));
150 static time_t time1 P((struct tm * tmp,
151 struct tm * (*funcp) P((const time_t *,
152 long, struct tm *)),
154 static time_t time2 P((struct tm *tmp,
155 struct tm * (*func
[all...]
H A Dstrftime.c45 static char * _fmt P((const char *, const struct tm *, char *, const char *,
67 const struct tm * const t;
100 const struct tm * const t;
256 struct tm tm; local
261 tm = *t;
262 mkt = mktime(&tm);
/haiku/headers/compatibility/bsd/
H A Dtime.h20 time_t timelocal(struct tm *tm);
21 time_t timegm(struct tm *tm);
/haiku/headers/private/kernel/boot/
H A Dimages.h13 # 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 Dtdate_parse.c194 tm_to_time( struct tm* tmP )
223 struct tm tm; local
231 (void) memset( (char*) &tm, 0, sizeof(struct tm) );
248 tm.tm_mday = tm_mday;
249 tm.tm_mon = tm_mon;
250 tm.tm_year = tm_year;
251 tm.tm_hour = tm_hour;
252 tm
[all...]
/haiku/headers/posix/
H A Dtime.h54 struct tm { struct
81 extern time_t mktime(struct tm *tm);
83 extern char *asctime(const struct tm *tm);
84 extern char *asctime_r(const struct tm *timep, char *buffer);
87 extern struct tm *gmtime(const time_t *timer);
88 extern struct tm *gmtime_r(const time_t *timer, struct tm *tm);
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dtst-mktime.c9 struct tm time_str, *tm; local
37 tm = localtime (&t);
38 if (tm == NULL)
45 time_str = *tm;
H A Dtest_time.c28 register struct tm *tp;
29 struct tm tbuf;
91 struct tm *loctime;
/haiku/headers/private/libroot/locale/
H A DICUTimeConversion.h32 struct tm* tmOut);
33 status_t Gmtime(const time_t* inTime, struct tm* tmOut);
35 status_t Mktime(struct tm* inOutTm, time_t& timeOut);
39 const time_t* inTime, struct tm* tmOut);
H A DICULocaleBackend.h71 struct tm* tmOut);
72 virtual status_t Gmtime(const time_t* inTime, struct tm* tmOut);
74 virtual status_t Mktime(struct tm* inOutTm, time_t& timeOut);
/haiku/src/system/libroot/posix/wchar/
H A Dwcsftime.cpp11 const struct tm* time)
/haiku/headers/private/fs_shell/
H A Dfssh_time.h64 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 Ddstcheck.cpp87 struct tm tm; local
90 localtime_r(&t, &tm);
105 struct tm tm; local
108 localtime_r(&t, &tm);
132 dst = tm.tm_isdst;
135 if (dst != tm.tm_isdst || argc > 1) {
152 char dst_byte = tm.tm_isdst ? '1' : '0';
H A Dtop.cpp128 team_info tm; local
201 strcpy(tm.args, "(unknown)");
206 if (get_team_info(t.team, &tm) < B_NO_ERROR) {
207 strcpy(tm.args, "(unknown)");
209 if ((p = strrchr(tm.args, '/'))) {
210 strlcpy(tm.args, p + 1, sizeof(tm.args));
215 tm.args[16] = 0;
238 tm.args,
286 team_info tm; local
[all...]
/haiku/src/bin/unzip/
H A Dtimezone.h65 int _isindst OF((struct tm *tb));
79 time_t mkgmtime OF((struct tm *tm));
H A Dtimezone.c526 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 Dreal_time_clock.h31 // 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 Dmisc.cpp40 struct timeval tm; local
41 gettimeofday(&tm, NULL);
42 return (int64)tm.tv_sec * 1000000LL + (int64)tm.tv_usec;
/haiku/src/system/libroot/os/
H A Dparsedate.cpp529 sense that it doesn't need to have a prefilled "struct tm"
703 computeRelativeUnit(parsed_element& element, struct tm& tm, int* _flags) argument
709 tm.tm_mon = 0; // supposed to fall through
711 tm.tm_mday = 1; // supposed to fall through
713 tm.tm_hour = 0;
714 tm.tm_min = 0;
715 tm.tm_sec = 0;
727 tm.tm_mon += value;
729 tm
765 struct tm tm; local
[all...]
/haiku/src/kits/network/libnetapi/
H A DHttpTime.cpp101 struct tm expireTime;
106 memset(&expireTime, 0, sizeof(struct tm));
128 // Now convert the struct tm from strptime into a BDateTime.
141 struct tm expirationTm;
/haiku/src/system/kernel/
H A Dreal_time_clock.cpp175 /*! Converts the \a tm data to seconds. Note that the base year is not
179 rtc_tm_to_secs(const struct tm *tm) argument
184 month = tm->tm_mon + 1;
185 year = tm->tm_year + RTC_EPOCH_BASE_YEAR;
189 days = tm->tm_mday - 32075 - RTC_EPOCH_JULIAN_DAY
194 return days * RTC_SECONDS_DAY + tm->tm_hour * 3600 + tm->tm_min * 60
195 + tm->tm_sec;
200 rtc_secs_to_tm(uint32 seconds, struct tm *
[all...]

Completed in 375 milliseconds

1234