문제

Does the standard C ctime function return the Gregorian calendar date? In particular, I want to verify that it will account for leap years and thus display Feb 29 for the respective dates.

도움이 되었습니까?

해결책

For times in the future and in the recent past, yes. For times before the Gregorian calendar reform... I don’t know, but those times are only relevant on systems with 64 bit time_t.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top