tmnow            3176 src/simh/scp.c struct tm *tmnow;
tmnow            3179 src/simh/scp.c tmnow = localtime(&now);
tmnow            3253 src/simh/scp.c                                        tmnow->tm_year + 1900,
tmnow            3254 src/simh/scp.c                                        tmnow->tm_mon  + 1,
tmnow            3255 src/simh/scp.c                                        tmnow->tm_mday);
tmnow            3260 src/simh/scp.c                                        tmnow->tm_hour,
tmnow            3261 src/simh/scp.c                                        tmnow->tm_min,
tmnow            3262 src/simh/scp.c                                        tmnow->tm_sec);
tmnow            3267 src/simh/scp.c                                        tmnow->tm_year + 1900,
tmnow            3268 src/simh/scp.c                                        tmnow->tm_mon  + 1,
tmnow            3269 src/simh/scp.c                                        tmnow->tm_mday,
tmnow            3270 src/simh/scp.c                                        tmnow->tm_hour,
tmnow            3271 src/simh/scp.c                                        tmnow->tm_min,
tmnow            3272 src/simh/scp.c                                        tmnow->tm_sec);
tmnow            3277 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%x", tmnow);
tmnow            3281 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%I:%M:%S %p", tmnow);
tmnow            3285 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%c", tmnow);
tmnow            3290 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%Y", tmnow);
tmnow            3294 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%y", tmnow);
tmnow            3298 src/simh/scp.c                         (void)sprintf (rbuf, "%d", (tmnow->tm_year + 1900)/100);
tmnow            3303 src/simh/scp.c                         int year = tmnow->tm_year + 1900;
tmnow            3319 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%m", tmnow);
tmnow            3323 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%b", tmnow);
tmnow            3327 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%d", tmnow);
tmnow            3331 src/simh/scp.c                         (void)sprintf (rbuf, "%d", (tmnow->tm_wday ? tmnow->tm_wday : 7));
tmnow            3336 src/simh/scp.c                         int iso_yr = tmnow->tm_year + 1900;
tmnow            3337 src/simh/scp.c                         int iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7;;
tmnow            3341 src/simh/scp.c                             tmnow->tm_yday += 365 + (((iso_yr % 4) == 0) ? 1 : 0);  /* Adjust for Leap Year (Correct thru 2099) */
tmnow            3342 src/simh/scp.c                             iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7;
tmnow            3345 src/simh/scp.c                             if ((iso_wk == 53) && (((31 - tmnow->tm_mday) + tmnow->tm_wday) < 4)) {
tmnow            3356 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%j", tmnow);
tmnow            3360 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%H", tmnow);
tmnow            3364 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%M", tmnow);
tmnow            3368 src/simh/scp.c                         strftime (rbuf, sizeof(rbuf), "%S", tmnow);