Frage

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.

War es hilfreich?

Lösung

@JonathonLeffler ok point taken.

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top