Question

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.

Was it helpful?

Solution

@JonathonLeffler ok point taken.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top