tmnow 2908 src/simh/scp.c struct tm *tmnow; tmnow 2911 src/simh/scp.c tmnow = localtime(&now); tmnow 2981 src/simh/scp.c sprintf (rbuf, "%4d-%02d-%02d", tmnow->tm_year+1900, tmnow->tm_mon+1, tmnow->tm_mday); tmnow 2985 src/simh/scp.c sprintf (rbuf, "%02d:%02d:%02d", tmnow->tm_hour, tmnow->tm_min, tmnow->tm_sec); tmnow 2989 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 2994 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%x", tmnow); tmnow 2998 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%I:%M:%S %p", tmnow); tmnow 3002 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%c", tmnow); tmnow 3007 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%Y", tmnow); tmnow 3011 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%y", tmnow); tmnow 3015 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_year + 1900)/100); tmnow 3020 src/simh/scp.c int year = tmnow->tm_year + 1900; tmnow 3036 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%m", tmnow); tmnow 3040 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%b", tmnow); tmnow 3044 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%d", tmnow); tmnow 3048 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_wday ? tmnow->tm_wday : 7)); tmnow 3053 src/simh/scp.c int iso_yr = tmnow->tm_year + 1900; tmnow 3054 src/simh/scp.c int iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7;; tmnow 3058 src/simh/scp.c tmnow->tm_yday += 365 + (((iso_yr % 4) == 0) ? 1 : 0); /* Adjust for Leap Year (Correct thru 2099) */ tmnow 3059 src/simh/scp.c iso_wk = (tmnow->tm_yday + 11 - (tmnow->tm_wday ? tmnow->tm_wday : 7))/7; tmnow 3062 src/simh/scp.c if ((iso_wk == 53) && (((31 - tmnow->tm_mday) + tmnow->tm_wday) < 4)) { tmnow 3073 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%j", tmnow); tmnow 3077 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%H", tmnow); tmnow 3081 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%M", tmnow); tmnow 3085 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%S", tmnow);