문제

I just asked how to calculate epoch day How to calculate epoch day? - probably should haver asked this at the same time. Anyhoo....

How do I calculate epoch month? By "epoch month" I mean "the current month is the Xth month since the epoch". X is an integer.

도움이 되었습니까?

해결책

@JonathonLeffler ok point taken.

epochmonth = ((current year number - 1970 - 1) * 12) + current month number

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