headers/compatibility/bsd/time.h
20
time_t timelocal(struct tm *tm);
headers/compatibility/bsd/time.h
21
time_t timegm(struct tm *tm);
headers/posix/time.h
83
extern time_t mktime(struct tm *tm);
headers/posix/time.h
85
extern char *asctime(const struct tm *tm);
headers/posix/time.h
86
extern char *asctime_r(const struct tm *timep, char *buffer);
headers/posix/time.h
89
extern struct tm *gmtime(const time_t *timer);
headers/posix/time.h
90
extern struct tm *gmtime_r(const time_t *timer, struct tm *tm);
headers/posix/time.h
91
extern struct tm *localtime(const time_t *timer);
headers/posix/time.h
92
extern struct tm *localtime_r(const time_t *timer, struct tm *tm);
headers/posix/time.h
95
const struct tm *tm);
headers/posix/time.h
97
const struct tm *tm, locale_t locale);
headers/posix/time.h
98
extern char *strptime(const char *buf, const char *format, struct tm *tm);
headers/posix/wchar.h
90
const wchar_t *format, const struct tm *timeptr);
headers/private/fs_shell/fssh_time.h
64
extern fssh_time_t fssh_mktime(struct fssh_tm *tm);
headers/private/fs_shell/fssh_time.h
66
extern char *fssh_asctime(const struct fssh_tm *tm);
headers/private/fs_shell/fssh_time.h
73
struct fssh_tm *tm);
headers/private/fs_shell/fssh_time.h
76
struct fssh_tm *tm);
headers/private/fs_shell/fssh_time.h
78
const char *format, const struct fssh_tm *tm);
headers/private/fs_shell/fssh_time.h
80
struct fssh_tm *tm);
headers/private/interface/ColumnTypes.h
111
struct tm fTime;
headers/private/kernel/arch/m68k/arch_cpu.h
68
uint16 tm:3;
headers/private/kernel/arch/m68k/arch_cpu.h
79
uint32 tm:2;
headers/private/kernel/real_time_clock.h
33
uint64 rtc_tm_to_secs(const struct tm *t);
headers/private/kernel/real_time_clock.h
34
void rtc_secs_to_tm(uint64 seconds, struct tm *t);
headers/private/libroot/locale/ICULocaleBackend.h
71
struct tm* tmOut);
headers/private/libroot/locale/ICULocaleBackend.h
72
virtual status_t Gmtime(const time_t* inTime, struct tm* tmOut);
headers/private/libroot/locale/ICULocaleBackend.h
74
virtual status_t Mktime(struct tm* inOutTm, time_t& timeOut);
headers/private/libroot/locale/ICULocaleBackend.h
76
virtual status_t Timegm(struct tm* inOutTm, time_t& timeOut);
headers/private/libroot/locale/ICUTimeConversion.h
32
struct tm* tmOut);
headers/private/libroot/locale/ICUTimeConversion.h
33
status_t Gmtime(const time_t* inTime, struct tm* tmOut);
headers/private/libroot/locale/ICUTimeConversion.h
35
status_t Mktime(struct tm* inOutTm, time_t& timeOut);
headers/private/libroot/locale/ICUTimeConversion.h
37
status_t Timegm(struct tm* inOutTm, time_t& timeOut);
headers/private/libroot/locale/ICUTimeConversion.h
42
const time_t* inTime, struct tm* tmOut);
headers/private/libroot/locale/ICUTimeConversion.h
46
struct tm* inOutTm, time_t& timeOut);
headers/private/libroot/locale/LocaleBackend.h
155
struct tm* tmOut) = 0;
headers/private/libroot/locale/LocaleBackend.h
157
struct tm* tmOut) = 0;
headers/private/libroot/locale/LocaleBackend.h
158
virtual status_t Mktime(struct tm* inOutTm, time_t& timeOut) = 0;
headers/private/libroot/locale/LocaleBackend.h
160
virtual status_t Timegm(struct tm* inOutTm, time_t& timeOut) = 0;
headers/private/libroot/wchar_private.h
49
const wchar_t *format, const struct tm *time);
headers/tools/cppunit/cppunit/extensions/HelperMacros.h
338
#define CU_TEST(tm) CPPUNIT_TEST(tm)
src/add-ons/kernel/file_systems/exfat/Inode.cpp
227
struct tm localTm;
src/add-ons/kernel/file_systems/fat/bsd/kern/subr_clock.c
62
struct tm localTm;
src/add-ons/kernel/file_systems/fat/bsd/kern/vfs_subr.c
79
struct tm the_tm;
src/add-ons/kernel/file_systems/fat/support.cpp
996
struct tm localTm;
src/add-ons/kernel/file_systems/udf/UdfStructures.cpp
250
tm *local = localtime(&time);
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
1170
time_t tm = time(NULL);
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
1177
if (node->st.st_crtime + 60 * 5 < tm)
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
66
time_t tm = time(NULL);
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
75
st->st_atime = tm;
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
76
st->st_mtime = tm;
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
77
st->st_ctime = tm;
src/add-ons/kernel/file_systems/websearchfs/websearchfs.c
78
st->st_crtime = tm;
src/add-ons/screen_savers/simpleclock/SimpleClock.cpp
88
struct tm *nowTime = localtime(&timeInfo);
src/add-ons/translators/raw/RAW.cpp
2780
struct tm t;
src/apps/aboutsystem/AboutSystem.cpp
1557
struct tm* tm = localtime(&time);
src/apps/aboutsystem/AboutSystem.cpp
1558
int32 year = tm->tm_year + 1900;
src/apps/clock/cl_view.cpp
256
struct tm *loctime = localtime(¤t);
src/apps/deskbar/TimeView.cpp
271
tm* ct = localtime(&curTime);
src/apps/login/LoginView.cpp
231
struct tm *t = localtime(&now);
src/apps/poorman/libhttpd/libhttpd.c
3986
struct tm* t;
src/apps/poorman/libhttpd/tdate_parse.c
195
tm_to_time( struct tm* tmP )
src/apps/poorman/libhttpd/tdate_parse.c
224
struct tm tm;
src/apps/poorman/libhttpd/tdate_parse.c
232
(void) memset( (char*) &tm, 0, sizeof(struct tm) );
src/apps/poorman/libhttpd/tdate_parse.c
249
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
250
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
251
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
252
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
253
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
254
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
263
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
264
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
265
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
266
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
267
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
268
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
277
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
278
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
279
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
280
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
281
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
282
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
291
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
292
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
293
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
294
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
295
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
296
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
306
tm.tm_wday = tm_wday;
src/apps/poorman/libhttpd/tdate_parse.c
307
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
308
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
309
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
310
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
311
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
312
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
322
tm.tm_wday = tm_wday;
src/apps/poorman/libhttpd/tdate_parse.c
323
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
324
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
325
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
326
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
327
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
328
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
338
tm.tm_wday = tm_wday;
src/apps/poorman/libhttpd/tdate_parse.c
339
tm.tm_mon = tm_mon;
src/apps/poorman/libhttpd/tdate_parse.c
340
tm.tm_mday = tm_mday;
src/apps/poorman/libhttpd/tdate_parse.c
341
tm.tm_hour = tm_hour;
src/apps/poorman/libhttpd/tdate_parse.c
342
tm.tm_min = tm_min;
src/apps/poorman/libhttpd/tdate_parse.c
343
tm.tm_sec = tm_sec;
src/apps/poorman/libhttpd/tdate_parse.c
344
tm.tm_year = tm_year;
src/apps/poorman/libhttpd/tdate_parse.c
349
if ( tm.tm_year > 1900 )
src/apps/poorman/libhttpd/tdate_parse.c
350
tm.tm_year -= 1900;
src/apps/poorman/libhttpd/tdate_parse.c
351
else if ( tm.tm_year < 70 )
src/apps/poorman/libhttpd/tdate_parse.c
352
tm.tm_year += 100;
src/apps/poorman/libhttpd/tdate_parse.c
354
t = tm_to_time( &tm );
src/apps/terminal/BasicTerminalBuffer.cpp
1796
struct tm* ts = gmtime(&timeStamp);
src/apps/terminal/BasicTerminalBuffer.cpp
1863
struct tm* ts = gmtime(&timeStamp);
src/bin/debug/strace/util.cpp
16
const struct tm *timep = localtime(&t);
src/bin/dstcheck.cpp
105
struct tm tm;
src/bin/dstcheck.cpp
108
localtime_r(&t, &tm);
src/bin/dstcheck.cpp
110
if (tm.tm_year < (2020 - 1900)) {
src/bin/dstcheck.cpp
138
dst = tm.tm_isdst;
src/bin/dstcheck.cpp
141
if (dst != tm.tm_isdst || argc > 1) {
src/bin/dstcheck.cpp
158
char dst_byte = tm.tm_isdst ? '1' : '0';
src/bin/dstcheck.cpp
87
struct tm tm;
src/bin/dstcheck.cpp
90
localtime_r(&t, &tm);
src/bin/launch_roster.cpp
67
struct tm tm;
src/bin/launch_roster.cpp
68
localtime_r(&at, &tm);
src/bin/launch_roster.cpp
70
strftime(label, sizeof(label), "%F %X", &tm);
src/bin/listattr.cpp
119
struct tm timeInfo;
src/bin/mail_utils/mbox2mail.cpp
357
struct tm TimeFields;
src/bin/network/ftpd/ftpcmd.y
838
struct tm *t;
src/bin/package/command_list.cpp
116
struct tm* time = localtime(&entry->ModifiedTime().tv_sec);
src/bin/pcmcia-cs/dump_cis.c
181
static void print_time(u_int tm, u_long scale)
src/bin/pcmcia-cs/dump_cis.c
183
print_unit(tm * scale, "num", 's');
src/bin/top.cpp
128
team_info tm;
src/bin/top.cpp
201
strcpy(tm.args, "(unknown)");
src/bin/top.cpp
206
if (get_team_info(t.team, &tm) < B_NO_ERROR) {
src/bin/top.cpp
207
strcpy(tm.args, "(unknown)");
src/bin/top.cpp
209
if ((p = strrchr(tm.args, '/'))) {
src/bin/top.cpp
210
strlcpy(tm.args, p + 1, sizeof(tm.args));
src/bin/top.cpp
215
tm.args[16] = 0;
src/bin/top.cpp
238
tm.args,
src/bin/top.cpp
287
team_info tm;
src/bin/top.cpp
295
while (get_next_team_info(&tmcookie, &tm) == B_NO_ERROR) {
src/bin/top.cpp
297
while (get_next_thread_info(tm.team, &thcookie, &t) == B_NO_ERROR) {
src/bin/unzip/fileio.c
1631
struct tm *tm;
src/bin/unzip/fileio.c
1634
tm = localtime(&now);
src/bin/unzip/fileio.c
1635
tm->tm_isdst = -1; /* let mktime determine if DST is in effect */
src/bin/unzip/fileio.c
1638
tm->tm_year = ((int)(dosdatetime >> 25) & 0x7f) + (1980 - YRBASE);
src/bin/unzip/fileio.c
1639
tm->tm_mon = ((int)(dosdatetime >> 21) & 0x0f) - 1;
src/bin/unzip/fileio.c
1640
tm->tm_mday = ((int)(dosdatetime >> 16) & 0x1f);
src/bin/unzip/fileio.c
1643
tm->tm_hour = (int)((unsigned)dosdatetime >> 11) & 0x1f;
src/bin/unzip/fileio.c
1644
tm->tm_min = (int)((unsigned)dosdatetime >> 5) & 0x3f;
src/bin/unzip/fileio.c
1645
tm->tm_sec = (int)((unsigned)dosdatetime << 1) & 0x3e;
src/bin/unzip/fileio.c
1647
m_time = mktime(tm);
src/bin/unzip/fileio.c
1662
struct tm *tm;
src/bin/unzip/fileio.c
1742
if ((tm = localtime(&m_time)) != (struct tm *)NULL)
src/bin/unzip/fileio.c
1743
m_time -= tm->tm_gmtoff; /* sec. EAST of GMT: subtr. */
src/bin/unzip/fileio.c
1769
if (((tm = localtime((time_t *)&m_time)) != NULL) && tm->tm_isdst)
src/bin/unzip/list.c
104
struct tm *t;
src/bin/unzip/list.c
274
t = (struct tm *)NULL;
src/bin/unzip/list.c
275
if (t != (struct tm *)NULL) {
src/bin/unzip/zipinfo.c
2126
struct tm *t;
src/bin/unzip/zipinfo.c
2146
if (uO.lflag > 9 && t == (struct tm *)NULL)
src/bin/unzip/zipinfo.c
2152
t = (struct tm *)NULL;
src/bin/unzip/zipinfo.c
2153
if (t != (struct tm *)NULL) {
src/build/libroot/misc.cpp
40
struct timeval tm;
src/build/libroot/misc.cpp
41
gettimeofday(&tm, NULL);
src/build/libroot/misc.cpp
42
return (int64)tm.tv_sec * 1000000LL + (int64)tm.tv_usec;
src/kits/interface/ColumnTypes.cpp
329
tm time_data;
src/kits/mail/HaikuMailFormatFilter.cpp
169
struct tm timeFields;
src/kits/mail/MailMessage.cpp
759
struct tm tm;
src/kits/mail/MailMessage.cpp
760
localtime_r(&creationTime, &tm);
src/kits/mail/MailMessage.cpp
763
"%a, %d %b %Y %H:%M:%S", &tm);
src/kits/mail/MailMessage.cpp
767
tm.tm_gmtoff / 3600, (tm.tm_gmtoff / 60) % 60);
src/kits/mail/MailMessage.cpp
859
struct tm timeFields;
src/kits/network/libnetapi/Certificate.cpp
25
struct tm time;
src/kits/network/libnetservices/HttpTime.cpp
105
struct tm expireTime;
src/kits/network/libnetservices/HttpTime.cpp
110
memset(&expireTime, 0, sizeof(struct tm));
src/kits/network/libnetservices/HttpTime.cpp
151
struct tm expirationTm;
src/kits/network/libnetservices2/HttpTime.cpp
155
struct tm expirationTm = {};
src/kits/network/libnetservices2/HttpTime.cpp
193
struct tm expireTime = {};
src/kits/support/DateTime.cpp
1404
tm tm_struct;
src/kits/support/DateTime.cpp
155
struct tm result;
src/kits/support/DateTime.cpp
156
struct tm* timeinfo;
src/kits/support/DateTime.cpp
494
struct tm result;
src/kits/support/DateTime.cpp
495
struct tm* timeinfo;
src/kits/support/DateTime.cpp
961
tm tm_struct;
src/kits/support/DateTime.cpp
962
memset(&tm_struct, 0, sizeof(tm));
src/kits/support/DateTime.cpp
992
tm tm_struct;
src/kits/support/DateTime.cpp
993
memset(&tm_struct, 0, sizeof(tm));
src/kits/tracker/FSUtils.cpp
2188
tm timeData;
src/kits/tracker/FindPanel.cpp
3690
tm nowTimeData;
src/kits/tracker/FindPanel.cpp
3691
tm fileModData;
src/kits/tracker/FindPanel.cpp
574
tm timeData;
src/kits/tracker/QueryPoseView.cpp
286
tm timeData;
src/preferences/time/DateTimeView.cpp
151
struct tm result;
src/preferences/time/DateTimeView.cpp
152
struct tm* timeInfo;
src/servers/package/CommitTransactionHandler.cpp
468
struct tm now;
src/servers/syslog_daemon/syslog_output.cpp
138
struct tm when;
src/system/kernel/arch/m68k/arch_real_time_clock.cpp
129
struct tm t;
src/system/kernel/arch/m68k/arch_real_time_clock.cpp
147
struct tm t;
src/system/kernel/arch/ppc/arch_platform.cpp
188
struct tm t;
src/system/kernel/arch/ppc/arch_platform.cpp
204
struct tm t;
src/system/kernel/arch/sparc/arch_platform.cpp
188
struct tm t;
src/system/kernel/arch/sparc/arch_platform.cpp
204
struct tm t;
src/system/kernel/arch/x86/arch_real_time_clock.cpp
143
struct tm t;
src/system/kernel/arch/x86/arch_real_time_clock.cpp
161
struct tm t;
src/system/kernel/real_time_clock.cpp
179
rtc_tm_to_secs(const struct tm *tm)
src/system/kernel/real_time_clock.cpp
184
month = tm->tm_mon + 1;
src/system/kernel/real_time_clock.cpp
185
year = tm->tm_year + RTC_EPOCH_BASE_YEAR;
src/system/kernel/real_time_clock.cpp
189
days = tm->tm_mday - 32075 - RTC_EPOCH_JULIAN_DAY
src/system/kernel/real_time_clock.cpp
194
return (uint64)days * RTC_SECONDS_DAY + tm->tm_hour * 3600 + tm->tm_min * 60
src/system/kernel/real_time_clock.cpp
195
+ tm->tm_sec;
src/system/kernel/real_time_clock.cpp
200
rtc_secs_to_tm(uint64 seconds, struct tm *t)
src/system/libnetwork/netresolv/resolv/res_debug.c
1177
struct tm *mytime;
src/system/libnetwork/netresolv/resolv/res_debug.c
1179
struct tm res;
src/system/libroot/add-ons/icu/ICULocaleBackend.cpp
344
ICULocaleBackend::Localtime(const time_t* inTime, struct tm* tmOut)
src/system/libroot/add-ons/icu/ICULocaleBackend.cpp
353
ICULocaleBackend::Gmtime(const time_t* inTime, struct tm* tmOut)
src/system/libroot/add-ons/icu/ICULocaleBackend.cpp
362
ICULocaleBackend::Mktime(struct tm* inOutTm, time_t& timeOut)
src/system/libroot/add-ons/icu/ICULocaleBackend.cpp
371
ICULocaleBackend::Timegm(struct tm* inOutTm, time_t& timeOut)
src/system/libroot/add-ons/icu/ICUTimeConversion.cpp
170
ICUTimeConversion::Localtime(const time_t* inTime, struct tm* tmOut)
src/system/libroot/add-ons/icu/ICUTimeConversion.cpp
181
ICUTimeConversion::Gmtime(const time_t* inTime, struct tm* tmOut)
src/system/libroot/add-ons/icu/ICUTimeConversion.cpp
197
ICUTimeConversion::Mktime(struct tm* inOutTm, time_t& timeOut)
src/system/libroot/add-ons/icu/ICUTimeConversion.cpp
204
ICUTimeConversion::Timegm(struct tm* inOutTm, time_t& timeOut)
src/system/libroot/add-ons/icu/ICUTimeConversion.cpp
213
const time_t* inTime, struct tm* tmOut)
src/system/libroot/add-ons/icu/ICUTimeConversion.cpp
263
struct tm* inOutTm, time_t& timeOut)
src/system/libroot/os/parsedate.cpp
703
computeRelativeUnit(parsed_element& element, struct tm& tm, int* _flags)
src/system/libroot/os/parsedate.cpp
709
tm.tm_mon = 0; // supposed to fall through
src/system/libroot/os/parsedate.cpp
711
tm.tm_mday = 1; // supposed to fall through
src/system/libroot/os/parsedate.cpp
713
tm.tm_hour = 0;
src/system/libroot/os/parsedate.cpp
714
tm.tm_min = 0;
src/system/libroot/os/parsedate.cpp
715
tm.tm_sec = 0;
src/system/libroot/os/parsedate.cpp
727
tm.tm_mon += value;
src/system/libroot/os/parsedate.cpp
729
tm.tm_mday += value;
src/system/libroot/os/parsedate.cpp
731
tm.tm_sec += value;
src/system/libroot/os/parsedate.cpp
734
tm.tm_year += value;
src/system/libroot/os/parsedate.cpp
736
tm.tm_mday += element.value - tm.tm_wday;
src/system/libroot/os/parsedate.cpp
739
tm.tm_mday += 7;
src/system/libroot/os/parsedate.cpp
741
tm.tm_mday -= 7;
src/system/libroot/os/parsedate.cpp
743
tm.tm_mon = element.value - 1;
src/system/libroot/os/parsedate.cpp
746
tm.tm_year++;
src/system/libroot/os/parsedate.cpp
748
tm.tm_year--;
src/system/libroot/os/parsedate.cpp
765
struct tm tm;
src/system/libroot/os/parsedate.cpp
772
memset(&tm, 0, sizeof(tm));
src/system/libroot/os/parsedate.cpp
774
localtime_r(&now, &tm);
src/system/libroot/os/parsedate.cpp
775
nowYear = tm.tm_year;
src/system/libroot/os/parsedate.cpp
777
tm.tm_min = 0;
src/system/libroot/os/parsedate.cpp
778
tm.tm_sec = 0;
src/system/libroot/os/parsedate.cpp
808
tm.tm_mday = element->value;
src/system/libroot/os/parsedate.cpp
811
tm.tm_mon = element->value - 1;
src/system/libroot/os/parsedate.cpp
815
tm.tm_hour = element->value;
src/system/libroot/os/parsedate.cpp
818
tm.tm_min = element->value;
src/system/libroot/os/parsedate.cpp
821
tm.tm_sec = element->value;
src/system/libroot/os/parsedate.cpp
827
struct tm tmNow;
src/system/libroot/os/parsedate.cpp
834
tm.tm_year = element->value;
src/system/libroot/os/parsedate.cpp
835
if (tm.tm_year < 1900) {
src/system/libroot/os/parsedate.cpp
840
if (nowYearInCentury + 10 < tm.tm_year % 100)
src/system/libroot/os/parsedate.cpp
841
tm.tm_year -= 100;
src/system/libroot/os/parsedate.cpp
843
tm.tm_year += nowCentury - 1900;
src/system/libroot/os/parsedate.cpp
846
tm.tm_year -= 1900;
src/system/libroot/os/parsedate.cpp
858
tm.tm_sec -= value + timezone;
src/system/libroot/os/parsedate.cpp
862
computeRelativeUnit(*element, tm, _flags);
src/system/libroot/os/parsedate.cpp
877
computeRelativeUnit(*element, tm, _flags);
src/system/libroot/os/parsedate.cpp
881
tm.tm_mon = element->value - 1;
src/system/libroot/os/parsedate.cpp
884
tm.tm_sec += element->value;
src/system/libroot/os/parsedate.cpp
888
tm.tm_sec -= element->value + timezone;
src/system/libroot/os/parsedate.cpp
897
computeRelativeUnit(*element, tm, _flags);
src/system/libroot/os/parsedate.cpp
912
return mktime(&tm);
src/system/libroot/posix/musl/time/__secs_to_tm.c
11
int __secs_to_tm(long long t, struct tm *tm)
src/system/libroot/posix/musl/time/__secs_to_tm.c
71
tm->tm_year = years + 100;
src/system/libroot/posix/musl/time/__secs_to_tm.c
72
tm->tm_mon = months + 2;
src/system/libroot/posix/musl/time/__secs_to_tm.c
73
tm->tm_mday = remdays + 1;
src/system/libroot/posix/musl/time/__secs_to_tm.c
74
tm->tm_wday = wday;
src/system/libroot/posix/musl/time/__secs_to_tm.c
75
tm->tm_yday = yday;
src/system/libroot/posix/musl/time/__secs_to_tm.c
77
tm->tm_hour = remsecs / 3600;
src/system/libroot/posix/musl/time/__secs_to_tm.c
78
tm->tm_min = remsecs / 60 % 60;
src/system/libroot/posix/musl/time/__secs_to_tm.c
79
tm->tm_sec = remsecs % 60;
src/system/libroot/posix/musl/time/__tm_to_secs.c
20
t += 86400LL * (tm->tm_mday-1);
src/system/libroot/posix/musl/time/__tm_to_secs.c
21
t += 3600LL * tm->tm_hour;
src/system/libroot/posix/musl/time/__tm_to_secs.c
22
t += 60LL * tm->tm_min;
src/system/libroot/posix/musl/time/__tm_to_secs.c
23
t += tm->tm_sec;
src/system/libroot/posix/musl/time/__tm_to_secs.c
3
long long __tm_to_secs(const struct tm *tm)
src/system/libroot/posix/musl/time/__tm_to_secs.c
6
long long year = tm->tm_year;
src/system/libroot/posix/musl/time/__tm_to_secs.c
7
int month = tm->tm_mon;
src/system/libroot/posix/musl/time/asctime.c
3
char *asctime(const struct tm *tm)
src/system/libroot/posix/musl/time/asctime.c
6
return asctime_r(tm, buf);
src/system/libroot/posix/musl/time/asctime_r.c
11
__nl_langinfo_l(ABDAY_1+tm->tm_wday, C_LOCALE),
src/system/libroot/posix/musl/time/asctime_r.c
12
__nl_langinfo_l(ABMON_1+tm->tm_mon, C_LOCALE),
src/system/libroot/posix/musl/time/asctime_r.c
13
tm->tm_mday, tm->tm_hour,
src/system/libroot/posix/musl/time/asctime_r.c
14
tm->tm_min, tm->tm_sec,
src/system/libroot/posix/musl/time/asctime_r.c
15
1900 + tm->tm_year) >= 26)
src/system/libroot/posix/musl/time/asctime_r.c
8
char *__asctime_r(const struct tm *restrict tm, char *restrict buf)
src/system/libroot/posix/musl/time/strftime.c
104
val = tm->tm_hour;
src/system/libroot/posix/musl/time/strftime.c
112
val = tm->tm_hour;
src/system/libroot/posix/musl/time/strftime.c
117
val = tm->tm_yday+1;
src/system/libroot/posix/musl/time/strftime.c
121
val = tm->tm_mon+1;
src/system/libroot/posix/musl/time/strftime.c
124
val = tm->tm_min;
src/system/libroot/posix/musl/time/strftime.c
130
item = tm->tm_hour >= 12 ? PM_STR : AM_STR;
src/system/libroot/posix/musl/time/strftime.c
139
val = __tm_to_secs(tm) - tm->__tm_gmtoff;
src/system/libroot/posix/musl/time/strftime.c
143
val = tm->tm_sec;
src/system/libroot/posix/musl/time/strftime.c
152
val = tm->tm_wday ? tm->tm_wday : 7;
src/system/libroot/posix/musl/time/strftime.c
156
val = (tm->tm_yday + 7U - tm->tm_wday) / 7;
src/system/libroot/posix/musl/time/strftime.c
159
val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7;
src/system/libroot/posix/musl/time/strftime.c
162
val = week_num(tm);
src/system/libroot/posix/musl/time/strftime.c
165
val = tm->tm_wday;
src/system/libroot/posix/musl/time/strftime.c
175
val = (tm->tm_year + 1900LL) % 100;
src/system/libroot/posix/musl/time/strftime.c
179
val = tm->tm_year + 1900LL;
src/system/libroot/posix/musl/time/strftime.c
187
if (tm->tm_isdst < 0) {
src/system/libroot/posix/musl/time/strftime.c
192
tm->__tm_gmtoff/3600*100 + tm->__tm_gmtoff%3600/60);
src/system/libroot/posix/musl/time/strftime.c
195
if (tm->tm_isdst < 0) {
src/system/libroot/posix/musl/time/strftime.c
199
fmt = __tm_to_tzname(tm);
src/system/libroot/posix/musl/time/strftime.c
20
static int week_num(const struct tm *tm)
src/system/libroot/posix/musl/time/strftime.c
22
int val = (tm->tm_yday + 7U - (tm->tm_wday+6U)%7) / 7;
src/system/libroot/posix/musl/time/strftime.c
223
*l = __strftime_l(*s, sizeof *s, fmt, tm, loc);
src/system/libroot/posix/musl/time/strftime.c
228
size_t __strftime_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc)
src/system/libroot/posix/musl/time/strftime.c
25
if ((tm->tm_wday + 371U - tm->tm_yday - 2) % 7 <= 2)
src/system/libroot/posix/musl/time/strftime.c
262
t = __strftime_fmt_1(&buf, &k, *f, tm, loc, pad);
src/system/libroot/posix/musl/time/strftime.c
274
if (tm->tm_year < -1900) {
src/system/libroot/posix/musl/time/strftime.c
296
size_t strftime(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm)
src/system/libroot/posix/musl/time/strftime.c
298
return __strftime_l(s, n, f, tm, CURRENT_LOCALE);
src/system/libroot/posix/musl/time/strftime.c
33
int dec31 = (tm->tm_wday + 7U - tm->tm_yday - 1) % 7;
src/system/libroot/posix/musl/time/strftime.c
34
if (dec31 == 4 || (dec31 == 5 && is_leap(tm->tm_year%400-1)))
src/system/libroot/posix/musl/time/strftime.c
41
int jan1 = (tm->tm_wday + 371U - tm->tm_yday) % 7;
src/system/libroot/posix/musl/time/strftime.c
42
if (jan1 != 4 && (jan1 != 3 || !is_leap(tm->tm_year)))
src/system/libroot/posix/musl/time/strftime.c
48
const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc, int pad)
src/system/libroot/posix/musl/time/strftime.c
57
if (tm->tm_wday > 6U) goto string;
src/system/libroot/posix/musl/time/strftime.c
58
item = ABDAY_1 + tm->tm_wday;
src/system/libroot/posix/musl/time/strftime.c
61
if (tm->tm_wday > 6U) goto string;
src/system/libroot/posix/musl/time/strftime.c
62
item = DAY_1 + tm->tm_wday;
src/system/libroot/posix/musl/time/strftime.c
66
if (tm->tm_mon > 11U) goto string;
src/system/libroot/posix/musl/time/strftime.c
67
item = ABMON_1 + tm->tm_mon;
src/system/libroot/posix/musl/time/strftime.c
70
if (tm->tm_mon > 11U) goto string;
src/system/libroot/posix/musl/time/strftime.c
71
item = MON_1 + tm->tm_mon;
src/system/libroot/posix/musl/time/strftime.c
77
val = (1900LL+tm->tm_year) / 100;
src/system/libroot/posix/musl/time/strftime.c
82
val = tm->tm_mday;
src/system/libroot/posix/musl/time/strftime.c
92
val = tm->tm_year + 1900LL;
src/system/libroot/posix/musl/time/strftime.c
93
if (tm->tm_yday < 3 && week_num(tm) != 1) val--;
src/system/libroot/posix/musl/time/strftime.c
94
else if (tm->tm_yday > 360 && week_num(tm) == 1) val++;
src/system/libroot/posix/musl/time/strptime.c
10
char *strptime(const char *restrict s, const char *restrict f, struct tm *restrict tm)
src/system/libroot/posix/musl/time/strptime.c
100
dest = &tm->tm_hour;
src/system/libroot/posix/musl/time/strptime.c
105
dest = &tm->tm_yday;
src/system/libroot/posix/musl/time/strptime.c
111
dest = &tm->tm_mon;
src/system/libroot/posix/musl/time/strptime.c
117
dest = &tm->tm_min;
src/system/libroot/posix/musl/time/strptime.c
128
tm->tm_hour %= 12;
src/system/libroot/posix/musl/time/strptime.c
135
tm->tm_hour %= 12;
src/system/libroot/posix/musl/time/strptime.c
136
tm->tm_hour += 12;
src/system/libroot/posix/musl/time/strptime.c
142
s = strptime(s, nl_langinfo(T_FMT_AMPM), tm);
src/system/libroot/posix/musl/time/strptime.c
146
s = strptime(s, "%H:%M", tm);
src/system/libroot/posix/musl/time/strptime.c
157
dest = &tm->tm_sec;
src/system/libroot/posix/musl/time/strptime.c
162
s = strptime(s, "%H:%M:%S", tm);
src/system/libroot/posix/musl/time/strptime.c
187
dest = &tm->tm_wday;
src/system/libroot/posix/musl/time/strptime.c
192
dest = &tm->tm_wday;
src/system/libroot/posix/musl/time/strptime.c
197
s = strptime(s, nl_langinfo(D_FMT), tm);
src/system/libroot/posix/musl/time/strptime.c
201
s = strptime(s, nl_langinfo(T_FMT), tm);
src/system/libroot/posix/musl/time/strptime.c
210
dest = &tm->tm_year;
src/system/libroot/posix/musl/time/strptime.c
220
tm->__tm_gmtoff = (s[1]-'0')*36000+(s[2]-'0')*3600
src/system/libroot/posix/musl/time/strptime.c
222
if (neg) tm->__tm_gmtoff = -tm->__tm_gmtoff;
src/system/libroot/posix/musl/time/strptime.c
227
tm->tm_isdst = 0;
src/system/libroot/posix/musl/time/strptime.c
230
tm->tm_isdst = 1;
src/system/libroot/posix/musl/time/strptime.c
249
switch((char *)dest - (char *)tm) {
src/system/libroot/posix/musl/time/strptime.c
250
case offsetof(struct tm, tm_yday):
src/system/libroot/posix/musl/time/strptime.c
285
tm->tm_year = relyear;
src/system/libroot/posix/musl/time/strptime.c
286
if (want_century & 2) tm->tm_year += century * 100 - 1900;
src/system/libroot/posix/musl/time/strptime.c
287
else if (tm->tm_year <= 68) tm->tm_year += 100;
src/system/libroot/posix/musl/time/strptime.c
36
dest = &tm->tm_wday;
src/system/libroot/posix/musl/time/strptime.c
48
dest = &tm->tm_mon;
src/system/libroot/posix/musl/time/strptime.c
57
s = strptime(s, nl_langinfo(D_T_FMT), tm);
src/system/libroot/posix/musl/time/strptime.c
66
dest = &tm->tm_mday;
src/system/libroot/posix/musl/time/strptime.c
71
s = strptime(s, "%m/%d/%y", tm);
src/system/libroot/posix/musl/time/strptime.c
88
char *p = strptime(tmp, "%12Y-%m-%d", tm);
src/system/libroot/posix/musl/time/strptime.c
95
dest = &tm->tm_hour;
src/system/libroot/posix/musl/time/time_impl.h
6
hidden long long __tm_to_secs(const struct tm *);
src/system/libroot/posix/musl/time/time_impl.h
7
hidden int __secs_to_tm(long long, struct tm *);
src/system/libroot/posix/musl/time/time_impl.h
8
hidden size_t __strftime_l(char *restrict s, size_t n, const char *restrict f, const struct tm *restrict tm, locale_t loc);
src/system/libroot/posix/musl/time/time_impl.h
9
hidden const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int);
src/system/libroot/posix/musl/time/time_impl_haiku.h
11
if (tm->tm_gmtoff == 0)
src/system/libroot/posix/musl/time/time_impl_haiku.h
2
__tm_to_tzname(const struct tm *tm)
src/system/libroot/posix/musl/time/time_impl_haiku.h
4
const void *p = tm->tm_zone;
src/system/libroot/posix/musl/time/time_impl_haiku.h
7
if (tm->tm_gmtoff == timezone)
src/system/libroot/posix/musl/time/time_impl_haiku.h
9
if (tm->tm_gmtoff == daylight)
src/system/libroot/posix/musl/time/wcsftime.c
39
t_mb = __strftime_fmt_1(&buf, &k, *f, tm, loc, pad);
src/system/libroot/posix/musl/time/wcsftime.c
47
if (plus && tm->tm_year >= 10000-1900)
src/system/libroot/posix/musl/time/wcsftime.c
49
else if (tm->tm_year < -1900)
src/system/libroot/posix/musl/time/wcsftime.c
67
size_t wcsftime(wchar_t *restrict wcs, size_t n, const wchar_t *restrict f, const struct tm *restrict tm)
src/system/libroot/posix/musl/time/wcsftime.c
69
return __wcsftime_l(wcs, n, f, tm, CURRENT_LOCALE);
src/system/libroot/posix/musl/time/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)
src/system/libroot/posix/time/ctime.c
20
struct tm tm;
src/system/libroot/posix/time/ctime.c
21
return asctime_r(localtime_r(_timer, &tm), buf);
src/system/libroot/posix/time/localtime.cpp
101
extern "C" struct tm*
src/system/libroot/posix/time/localtime.cpp
102
gmtime_r(const time_t* inTime, struct tm* tmOut)
src/system/libroot/posix/time/localtime.cpp
129
mktime(struct tm* inTm)
src/system/libroot/posix/time/localtime.cpp
159
timegm(struct tm* inTm)
src/system/libroot/posix/time/localtime.cpp
38
extern "C" struct tm* __gmtime_r_fallback(const time_t* timep, struct tm* tmp);
src/system/libroot/posix/time/localtime.cpp
39
extern "C" time_t __mktime_fallback(struct tm* tmp);
src/system/libroot/posix/time/localtime.cpp
40
extern "C" time_t __timegm_fallback(struct tm* tmp);
src/system/libroot/posix/time/localtime.cpp
56
extern "C" struct tm*
src/system/libroot/posix/time/localtime.cpp
59
static tm tm;
src/system/libroot/posix/time/localtime.cpp
61
return localtime_r(inTime, &tm);
src/system/libroot/posix/time/localtime.cpp
65
extern "C" struct tm*
src/system/libroot/posix/time/localtime.cpp
66
localtime_r(const time_t* inTime, struct tm* tmOut)
src/system/libroot/posix/time/localtime.cpp
92
extern "C" struct tm*
src/system/libroot/posix/time/localtime.cpp
95
static tm tm;
src/system/libroot/posix/time/localtime.cpp
97
return gmtime_r(inTime, &tm);
src/system/libroot/posix/time/localtime_fallback.c
25
struct tm *
src/system/libroot/posix/time/localtime_fallback.c
26
__gmtime_r_fallback(const time_t *restrict t, struct tm *restrict tm)
src/system/libroot/posix/time/localtime_fallback.c
28
if (__secs_to_tm(*t, tm) < 0) {
src/system/libroot/posix/time/localtime_fallback.c
32
tm->tm_isdst = 0;
src/system/libroot/posix/time/localtime_fallback.c
33
tm->__tm_gmtoff = 0;
src/system/libroot/posix/time/localtime_fallback.c
34
tm->__tm_zone = __utc;
src/system/libroot/posix/time/localtime_fallback.c
35
return tm;
src/system/libroot/posix/time/localtime_fallback.c
40
__mktime_fallback(struct tm *tm)
src/system/libroot/posix/time/localtime_fallback.c
42
struct tm new;
src/system/libroot/posix/time/localtime_fallback.c
44
long long t = __tm_to_secs(tm);
src/system/libroot/posix/time/localtime_fallback.c
48
if (tm->tm_isdst>=0 && new.tm_isdst!=tm->tm_isdst)
src/system/libroot/posix/time/localtime_fallback.c
58
*tm = new;
src/system/libroot/posix/time/localtime_fallback.c
68
__timegm_fallback(struct tm *tm)
src/system/libroot/posix/time/localtime_fallback.c
70
struct tm new;
src/system/libroot/posix/time/localtime_fallback.c
71
long long t = __tm_to_secs(tm);
src/system/libroot/posix/time/localtime_fallback.c
76
*tm = new;
src/system/libroot/posix/time/localtime_fallback.c
77
tm->tm_isdst = 0;
src/system/libroot/posix/time/localtime_fallback.c
78
tm->__tm_gmtoff = 0;
src/system/libroot/posix/time/localtime_fallback.c
79
tm->__tm_zone = __utc;
src/system/libroot/posix/wchar/wcsftime.cpp
11
const struct tm* time)
src/tests/kits/net/service/CookieTest.cpp
285
struct tm* now = gmtime(&t);
src/tests/kits/net/service/CookieTest.cpp
44
struct tm* now = gmtime(&t);
src/tests/system/libroot/posix/locale_test.cpp
1766
test_localtime(const char* tz, time_t nowSecs, const tm& expected)
src/tests/system/libroot/posix/locale_test.cpp
1771
tm now;
src/tests/system/libroot/posix/locale_test.cpp
1772
tm* result = localtime_r(&nowSecs, &now);
src/tests/system/libroot/posix/locale_test.cpp
1841
test_gmtime(const char* tz, time_t nowSecs, const tm& expected)
src/tests/system/libroot/posix/locale_test.cpp
1846
tm now;
src/tests/system/libroot/posix/locale_test.cpp
1847
tm* result = gmtime_r(&nowSecs, &now);
src/tests/system/libroot/posix/locale_test.cpp
1916
test_mktime(const char* tz, tm& tm, time_t expected, int expectedWeekDay,
src/tests/system/libroot/posix/locale_test.cpp
1922
time_t result = mktime(&tm);
src/tests/system/libroot/posix/locale_test.cpp
1928
if (tm.tm_wday != expectedWeekDay) {
src/tests/system/libroot/posix/locale_test.cpp
1930
tm.tm_wday, expectedWeekDay);
src/tests/system/libroot/posix/locale_test.cpp
1933
if (tm.tm_yday != expectedYearDay) {
src/tests/system/libroot/posix/locale_test.cpp
1935
tm.tm_yday, expectedYearDay);
src/tests/system/libroot/posix/locale_test.cpp
1951
tm gtm = {
src/tests/system/libroot/posix/locale_test.cpp
1960
tm gtmplus2 = {
src/tests/system/libroot/posix/locale_test.cpp
1969
tm gtmminus2 = {
src/tests/system/libroot/posix/locale_test.cpp
1978
tm btm = {
src/tests/system/libroot/posix/locale_test.cpp
1987
tm ctm = {
src/tests/system/libroot/posix/locale_test.cpp
1996
tm latm = {
src/tests/system/libroot/posix/locale_test.cpp
2005
tm ttm = {
src/tests/system/libroot/posix/locale_test.cpp
2017
tm gtm = {
src/tests/system/libroot/posix/locale_test.cpp
2026
tm btm = {
src/tests/system/libroot/posix/locale_test.cpp
2035
tm ctm = {
src/tests/system/libroot/posix/locale_test.cpp
2044
tm latm = {
src/tests/system/libroot/posix/locale_test.cpp
2053
tm ttm = {
src/tests/system/libroot/posix/locale_test.cpp
2065
tm gtm = {
src/tests/system/libroot/posix/locale_test.cpp
2074
tm btm = {
src/tests/system/libroot/posix/locale_test.cpp
2083
tm ctm = {
src/tests/system/libroot/posix/locale_test.cpp
2092
tm latm = {
src/tests/system/libroot/posix/locale_test.cpp
2101
tm ttm = {
src/tests/system/libroot/posix/locale_test.cpp
538
tm* testTime = localtime(&testTimeInSecs);
src/tests/system/libroot/posix/locale_test.cpp
665
struct tm resultTime;
src/tests/system/libroot/posix/test_time.c
28
register struct tm *tp;
src/tests/system/libroot/posix/test_time.c
29
struct tm tbuf;
src/tests/system/libroot/posix/test_time.c
91
struct tm *loctime;
src/tests/system/libroot/posix/tst-mktime.c
37
tm = localtime (&t);
src/tests/system/libroot/posix/tst-mktime.c
38
if (tm == NULL)
src/tests/system/libroot/posix/tst-mktime.c
45
time_str = *tm;
src/tests/system/libroot/posix/tst-mktime.c
9
struct tm time_str, *tm;
src/tests/system/libroot/posix/wcs_test.cpp
2616
tm* now = localtime(&nowSecs);
src/tools/fs_shell/fssh.cpp
353
struct tm time;