How do you account for months when converting to epoch time?

I would assume the formula for converting to epoch time would be:

(game.year-2016)(Seconds in a year)+(game.month-1)(HOW MANY SECONDS IN A MONTH???)+(game.day-1)(Seconds in a day)+(game.hour)(seconds in a hour)+(game.minutes)*(60)+game.seconds.

The problem being I have no idea how many seconds are in a month because it varies from month to month..

Comments

Sign In or Register to comment.