tmnow 2907 src/simh/scp.c struct tm *tmnow; tmnow 2910 src/simh/scp.c tmnow = localtime(&now); tmnow 2980 src/simh/scp.c sprintf (rbuf, "%4d-%02d-%02d", tmnow->tm_year+1900, tmnow->tm_mon+1, tmnow->tm_mday); tmnow 2984 src/simh/scp.c sprintf (rbuf, "%02d:%02d:%02d", tmnow->tm_hour, tmnow->tm_min, tmnow->tm_sec); tmnow 2988 src/simh/scp.c sprintf (rbuf, "%04d-%02d-%02dT%02d:%02d:%02d", tmnow->tm_year+1900, tmnow->tm_mon+1, tmnow->tm_mday, tmnow->tm_hour, tmnow->tm_min, tmnow->tm_sec); tmnow 2993 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%x", tmnow); tmnow 2997 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%I:%M:%S %p", tmnow); tmnow 3001 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%c", tmnow); tmnow 3006 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%Y", tmnow); tmnow 3010 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%y", tmnow); tmnow 3014 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_year + 1900)/100); tmnow 3019 src/simh/scp.c int year = tmnow->tm_year + 1900; tmnow 3035 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%m", tmnow); tmnow 3039 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%b", tmnow); tmnow 3043 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%d", tmnow); tmnow 3047 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_wday ? tmnow->tm_wday : 7)); tmnow 3052 src/simh/scp.c int iso_yr = tmnow->tm_year + 1900; tmnow 3053 src/simh/scp.c int iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7;; tmnow 3057 src/simh/scp.c tmnow->tm_yday += 365 + (((iso_yr % 4) == 0) ? 1 : 0); /* Adjust for Leap Year (Correct thru 2099) */ tmnow 3058 src/simh/scp.c iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7; tmnow 3061 src/simh/scp.c if ((iso_wk == 53) && (((31 - tmnow->tm_mday) + tmnow->tm_wday) < 4)) { tmnow 3072 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%j", tmnow); tmnow 3076 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%H", tmnow); tmnow 3080 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%M", tmnow); tmnow 3084 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%S", tmnow);