tmnow 3174 src/simh/scp.c struct tm *tmnow; tmnow 3177 src/simh/scp.c tmnow = localtime(&now); tmnow 3251 src/simh/scp.c tmnow->tm_year + 1900, tmnow 3252 src/simh/scp.c tmnow->tm_mon + 1, tmnow 3253 src/simh/scp.c tmnow->tm_mday); tmnow 3258 src/simh/scp.c tmnow->tm_hour, tmnow 3259 src/simh/scp.c tmnow->tm_min, tmnow 3260 src/simh/scp.c tmnow->tm_sec); tmnow 3265 src/simh/scp.c tmnow->tm_year + 1900, tmnow 3266 src/simh/scp.c tmnow->tm_mon + 1, tmnow 3267 src/simh/scp.c tmnow->tm_mday, tmnow 3268 src/simh/scp.c tmnow->tm_hour, tmnow 3269 src/simh/scp.c tmnow->tm_min, tmnow 3270 src/simh/scp.c tmnow->tm_sec); tmnow 3275 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%x", tmnow); tmnow 3279 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%I:%M:%S %p", tmnow); tmnow 3283 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%c", tmnow); tmnow 3288 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%Y", tmnow); tmnow 3292 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%y", tmnow); tmnow 3296 src/simh/scp.c (void)sprintf (rbuf, "%d", (tmnow->tm_year + 1900)/100); tmnow 3301 src/simh/scp.c int year = tmnow->tm_year + 1900; tmnow 3317 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%m", tmnow); tmnow 3321 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%b", tmnow); tmnow 3325 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%d", tmnow); tmnow 3329 src/simh/scp.c (void)sprintf (rbuf, "%d", (tmnow->tm_wday ? tmnow->tm_wday : 7)); tmnow 3334 src/simh/scp.c int iso_yr = tmnow->tm_year + 1900; tmnow 3335 src/simh/scp.c int iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7;; tmnow 3339 src/simh/scp.c tmnow->tm_yday += 365 + (((iso_yr % 4) == 0) ? 1 : 0); /* Adjust for Leap Year (Correct thru 2099) */ tmnow 3340 src/simh/scp.c iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7; tmnow 3343 src/simh/scp.c if ((iso_wk == 53) && (((31 - tmnow->tm_mday) + tmnow->tm_wday) < 4)) { tmnow 3354 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%j", tmnow); tmnow 3358 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%H", tmnow); tmnow 3362 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%M", tmnow); tmnow 3366 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%S", tmnow);