in reply to time in to sec calculation
Seconds since when?
You need some sort of base- (or zero-) time to convert a date to anything meaningful.
Choices include (among others):
Please rethink your question.