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???)+( 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..


Sign In or Register to comment.