Pergunta

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.

Foi útil?

Solução

@JonathonLeffler ok point taken.

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top