/dports/devel/dev86/dev86-0.16.20/libc/time/ |
H A D | tm_conv.c | 9 __tm_conv(tmbuf, timep, offset) 10 struct tm *tmbuf; 29 tmbuf->tm_sec = s % 60; 59 tmbuf->tm_mon = m; 60 tmbuf->tm_mday = d; 64 tmbuf->tm_yday++; 88 struct tm *tmbuf; in __tm_conv() 116 tmbuf->tm_wday += 7; 129 tmbuf->tm_yday = days; 133 tmbuf->tm_mon = y; [all …]
|
/dports/graphics/photopc/photopc-3.07/ |
H A D | ctimez.c | 91 static char tmbuf[80]; in ctimetz() local 96 strcpy(tmbuf,"N/A"); in ctimetz() 97 return tmbuf; in ctimetz() 103 (void)strftime(tmbuf,sizeof(tmbuf),timefmt,camtm); in ctimetz() 105 strncpy(tmbuf,asctime(camtm),sizeof(tmbuf)); in ctimetz() 106 tmbuf[sizeof(tmbuf)-1]='\0'; /* paranoia */ in ctimetz() 107 tmbuf[strlen(tmbuf)-1]='\0'; /* remove newline */ in ctimetz() 109 return tmbuf; in ctimetz()
|
/dports/net-mgmt/xymon-server/xymon-4.3.30/web/ |
H A D | report.c | 61 struct tm tmbuf; in parse_query() local 123 memset(&tmbuf, 0, sizeof(tmbuf)); in parse_query() 127 tmbuf.tm_hour = 0; in parse_query() 128 tmbuf.tm_min = 0; in parse_query() 129 tmbuf.tm_sec = 0; in parse_query() 133 memset(&tmbuf, 0, sizeof(tmbuf)); in parse_query() 134 tmbuf.tm_mday = endday; in parse_query() 135 tmbuf.tm_mon = endmon; in parse_query() 137 tmbuf.tm_hour = 23; in parse_query() 138 tmbuf.tm_min = 59; in parse_query() [all …]
|
H A D | history.c | 119 struct tm *tmbuf; in calc_time() local 129 tmbuf->tm_min = tmbuf->tm_sec = 59; in calc_time() 132 tmbuf->tm_min = tmbuf->tm_sec = 0; in calc_time() 140 tmbuf->tm_min = 59; in calc_time() 141 tmbuf->tm_sec = 59; in calc_time() 144 tmbuf->tm_hour = tmbuf->tm_min = tmbuf->tm_sec = 0; in calc_time() 153 tmbuf->tm_mday = daysinmonth[tmbuf->tm_mon]; in calc_time() 157 if (((tmbuf->tm_year + 1900) % 100) == 0) tmbuf->tm_mday = 28; in calc_time() 158 if (((tmbuf->tm_year + 1900) % 400) == 0) tmbuf->tm_mday = 29; in calc_time() 168 tmbuf->tm_hour = tmbuf->tm_min = tmbuf->tm_sec = 0; in calc_time() [all …]
|
H A D | snapshot.c | 48 struct tm tmbuf; in parse_query() local 87 memset(&tmbuf, 0, sizeof(tmbuf)); in parse_query() 88 tmbuf.tm_mday = day; in parse_query() 89 tmbuf.tm_mon = mon; in parse_query() 90 tmbuf.tm_year = year - 1900; in parse_query() 91 tmbuf.tm_hour = hour; in parse_query() 92 tmbuf.tm_min = min; in parse_query() 93 tmbuf.tm_sec = sec; in parse_query() 94 tmbuf.tm_isdst = -1; /* Important! Or we mishandle DST periods */ in parse_query() 95 starttime = mktime(&tmbuf); in parse_query()
|
/dports/net-mgmt/xymon-client/xymon-4.3.30/web/ |
H A D | report.c | 61 struct tm tmbuf; in parse_query() local 123 memset(&tmbuf, 0, sizeof(tmbuf)); in parse_query() 127 tmbuf.tm_hour = 0; in parse_query() 128 tmbuf.tm_min = 0; in parse_query() 129 tmbuf.tm_sec = 0; in parse_query() 133 memset(&tmbuf, 0, sizeof(tmbuf)); in parse_query() 134 tmbuf.tm_mday = endday; in parse_query() 135 tmbuf.tm_mon = endmon; in parse_query() 137 tmbuf.tm_hour = 23; in parse_query() 138 tmbuf.tm_min = 59; in parse_query() [all …]
|
H A D | history.c | 119 struct tm *tmbuf; in calc_time() local 129 tmbuf->tm_min = tmbuf->tm_sec = 59; in calc_time() 132 tmbuf->tm_min = tmbuf->tm_sec = 0; in calc_time() 140 tmbuf->tm_min = 59; in calc_time() 141 tmbuf->tm_sec = 59; in calc_time() 144 tmbuf->tm_hour = tmbuf->tm_min = tmbuf->tm_sec = 0; in calc_time() 153 tmbuf->tm_mday = daysinmonth[tmbuf->tm_mon]; in calc_time() 157 if (((tmbuf->tm_year + 1900) % 100) == 0) tmbuf->tm_mday = 28; in calc_time() 158 if (((tmbuf->tm_year + 1900) % 400) == 0) tmbuf->tm_mday = 29; in calc_time() 168 tmbuf->tm_hour = tmbuf->tm_min = tmbuf->tm_sec = 0; in calc_time() [all …]
|
H A D | snapshot.c | 48 struct tm tmbuf; in parse_query() local 87 memset(&tmbuf, 0, sizeof(tmbuf)); in parse_query() 88 tmbuf.tm_mday = day; in parse_query() 89 tmbuf.tm_mon = mon; in parse_query() 90 tmbuf.tm_year = year - 1900; in parse_query() 91 tmbuf.tm_hour = hour; in parse_query() 92 tmbuf.tm_min = min; in parse_query() 93 tmbuf.tm_sec = sec; in parse_query() 94 tmbuf.tm_isdst = -1; /* Important! Or we mishandle DST periods */ in parse_query() 95 starttime = mktime(&tmbuf); in parse_query()
|
/dports/security/gnupg-pkcs11-scd/gnupg-pkcs11-scd-0.9.2/gnupg-pkcs11-scd/ |
H A D | encoding.c | 165 struct tm tmbuf; in isotime2epoch() local 193 memset (&tmbuf, 0, sizeof tmbuf); in isotime2epoch() 194 tmbuf.tm_sec = sec; in isotime2epoch() 195 tmbuf.tm_min = minu; in isotime2epoch() 196 tmbuf.tm_hour = hour; in isotime2epoch() 197 tmbuf.tm_mday = day; in isotime2epoch() 198 tmbuf.tm_mon = month-1; in isotime2epoch() 199 tmbuf.tm_year = year - 1900; in isotime2epoch() 200 tmbuf.tm_isdst = -1; in isotime2epoch() 201 return timegm (&tmbuf); in isotime2epoch()
|
/dports/security/gnupg/gnupg-2.3.3/common/ |
H A D | t-gettime.c | 230 struct tm tmbuf; in test_isodate_human_to_tm() local 234 okay = !isodate_human_to_tm (array[idx].string, &tmbuf); in test_isodate_human_to_tm() 244 else if (tmbuf.tm_year + 1900 != array[idx].year in test_isodate_human_to_tm() 245 || tmbuf.tm_mon +1 != array[idx].mon in test_isodate_human_to_tm() 246 || tmbuf.tm_mday != array[idx].mday) in test_isodate_human_to_tm() 252 tmbuf.tm_year + 1900, tmbuf.tm_mon + 1, tmbuf.tm_mday); in test_isodate_human_to_tm() 254 else if (tmbuf.tm_sec || tmbuf.tm_min || tmbuf.tm_hour in test_isodate_human_to_tm() 255 || tmbuf.tm_isdst != -1) in test_isodate_human_to_tm()
|
H A D | gettime.c | 109 struct tm tmbuf; in gnupg_get_isotime() local 181 struct tm tmbuf; in scan_isodatestr() local 200 memset( &tmbuf, 0, sizeof tmbuf ); in scan_isodatestr() 201 tmbuf.tm_mday = day; in scan_isodatestr() 204 tmbuf.tm_isdst = -1; in scan_isodatestr() 370 struct tm tmbuf; in isotime2epoch() local 387 memset (&tmbuf, 0, sizeof tmbuf); in isotime2epoch() 388 tmbuf.tm_sec = sec; in isotime2epoch() 391 tmbuf.tm_mday = day; in isotime2epoch() 394 tmbuf.tm_isdst = -1; in isotime2epoch() [all …]
|
/dports/security/gnupg1/gnupg-1.4.23/util/ |
H A D | miscutil.c | 63 struct tm tmbuf; in scan_isodatestr() local 82 memset( &tmbuf, 0, sizeof tmbuf ); in scan_isodatestr() 83 tmbuf.tm_mday = day; in scan_isodatestr() 86 tmbuf.tm_isdst = -1; in scan_isodatestr() 175 struct tm tmbuf; in isotime2seconds() local 204 memset (&tmbuf, 0, sizeof tmbuf); in isotime2seconds() 205 tmbuf.tm_sec = sec; in isotime2seconds() 206 tmbuf.tm_min = minu; in isotime2seconds() 207 tmbuf.tm_hour = hour; in isotime2seconds() 208 tmbuf.tm_mday = day; in isotime2seconds() [all …]
|
/dports/databases/mariadb105-client/mariadb-10.5.15/storage/columnstore/columnstore/dbcon/joblist/ |
H A D | timestamp.cpp | 54 struct tm tmbuf; in format() local 58 p = localtime_s(&tmbuf, &t); in format() 62 memset(&tmbuf, 0, sizeof(tmbuf)); in format() 67 if (strftime(timeString, 50, "%Y-%m-%d %H:%M:%S", &tmbuf) == 0) in format() 72 localtime_r(&tvbuf.tv_sec, &tmbuf); in format() 73 strftime(timeString, 50, "%F %T", &tmbuf); in format()
|
/dports/databases/mariadb105-server/mariadb-10.5.15/storage/columnstore/columnstore/dbcon/joblist/ |
H A D | timestamp.cpp | 54 struct tm tmbuf; in format() local 58 p = localtime_s(&tmbuf, &t); in format() 62 memset(&tmbuf, 0, sizeof(tmbuf)); in format() 67 if (strftime(timeString, 50, "%Y-%m-%d %H:%M:%S", &tmbuf) == 0) in format() 72 localtime_r(&tvbuf.tv_sec, &tmbuf); in format() 73 strftime(timeString, 50, "%F %T", &tmbuf); in format()
|
/dports/news/rntrack/rntrack-2.1.10_2/src/ |
H A D | tmstamp.cpp | 62 struct tm * tmbuf; in TimeOfBeginOfDay() local 65 tmbuf = localtime(&t); in TimeOfBeginOfDay() 66 tmbuf->tm_sec = 0; in TimeOfBeginOfDay() 67 tmbuf->tm_min = 0; in TimeOfBeginOfDay() 68 tmbuf->tm_hour = 0; in TimeOfBeginOfDay() 69 t = mktime(tmbuf); in TimeOfBeginOfDay() 76 Day -= tmbuf->tm_wday; in TimeOfBeginOfDay()
|
/dports/devel/9base/9base-6/troff/ |
H A D | n5.c | 425 char tmbuf[NTM]; in casetm1() local 452 tmbuf[i++] = '\\'; in casetm1() 453 tmbuf[i++] = '-'; in casetm1() 455 tmbuf[i++] = '\\'; in casetm1() 456 tmbuf[i++] = 'e'; in casetm1() 458 tmbuf[i++] = '\\'; in casetm1() 459 tmbuf[i++] = '&'; in casetm1() 462 tmbuf[i++] = ' '; in casetm1() 465 tmbuf[i++] = '%'; in casetm1() 488 tmbuf[i++] = c; in casetm1() [all …]
|
/dports/devel/plan9port/plan9port-1f098efb7370a0b28306d10681e21883fb1c1507/src/cmd/troff/ |
H A D | n5.c | 425 char tmbuf[NTM]; in casetm1() local 452 tmbuf[i++] = '\\'; in casetm1() 453 tmbuf[i++] = '-'; in casetm1() 455 tmbuf[i++] = '\\'; in casetm1() 456 tmbuf[i++] = 'e'; in casetm1() 458 tmbuf[i++] = '\\'; in casetm1() 459 tmbuf[i++] = '&'; in casetm1() 462 tmbuf[i++] = ' '; in casetm1() 465 tmbuf[i++] = '%'; in casetm1() 488 tmbuf[i++] = c; in casetm1() [all …]
|
/dports/databases/db18/db-18.1.40/src/os_windows/ |
H A D | ce_mktime.c | 116 static struct tm tmbuf; local 118 tmbuf = *tmp; 119 tmbuf.tm_isdst = 1; 120 tmbuf.tm_min += DSTMINUTES; 121 normalize(&tmbuf.tm_hour, &tmbuf.tm_min, MINSPERHOUR); 122 return &tmbuf;
|
/dports/net/ntp/ntp-4.2.8p15/libntp/ |
H A D | mktime.c | 139 static struct tm tmbuf; in mkdst() local 141 tmbuf = *tmp; in mkdst() 142 tmbuf.tm_isdst = 1; in mkdst() 143 tmbuf.tm_min += DSTMINUTES; in mkdst() 144 normalize(&tmbuf.tm_hour, &tmbuf.tm_min, MINSPERHOUR); in mkdst() 145 return &tmbuf; in mkdst()
|
/dports/devel/heaptrack/heaptrack-1.3.0/tests/manual/ |
H A D | libc_leaks.c | 13 struct tm tmbuf; in main() local 14 gmtime_r(&t, &tmbuf); in main() 16 strftime(buf, sizeof(buf), "%d", &tmbuf); in main()
|
/dports/dns/unbound/unbound-1.14.0/util/ |
H A D | log.c | 227 char tmbuf[32]; in log_vmsg() local 230 char tmbuf[128], dtbuf[128]; in log_vmsg() local 274 if(log_time_asc && strftime(tmbuf, sizeof(tmbuf), "%b %d %H:%M:%S", in log_vmsg() 275 localtime_r(&now, &tm))%(sizeof(tmbuf)) != 0) { in log_vmsg() 277 fprintf(logfile, "%s %s[%d:%x] %s: %s\n", tmbuf, in log_vmsg() 282 tmbuf, sizeof(tmbuf)) && GetDateFormat(LOCALE_USER_DEFAULT, 0, in log_vmsg() 284 fprintf(logfile, "%s %s %s[%d:%x] %s: %s\n", dtbuf, tmbuf, in log_vmsg()
|
/dports/devel/emscripten/emscripten-2.0.3/system/lib/libc/musl/src/time/ |
H A D | getdate.c | 11 static struct tm tmbuf; in getdate() local 33 p = strptime(s, fmt, &tmbuf); in getdate() 35 ret = &tmbuf; in getdate()
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/musl/src/time/ |
H A D | getdate.c | 11 static struct tm tmbuf; in getdate() local 33 p = strptime(s, fmt, &tmbuf); in getdate() 35 ret = &tmbuf; in getdate()
|
/dports/lang/zig/zig-0.9.0/lib/libc/musl/src/time/ |
H A D | getdate.c | 11 static struct tm tmbuf; in getdate() local 33 p = strptime(s, fmt, &tmbuf); in getdate() 35 ret = &tmbuf; in getdate()
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/time/ |
H A D | getdate.c | 13 static struct tm tmbuf; in getdate() local 37 p = strptime(s, fmt, &tmbuf); in getdate() 39 ret = &tmbuf; in getdate()
|