Domanda

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.

È stato utile?

Soluzione

@JonathonLeffler ok point taken.

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top