in reply to convert my date into local time or epoch time

LOL -- I am happy to see modules addressing this.

A long time ago I found myself having to create a reciprocal function for localtime()-- essentially the same as this epoch()function.

It was an interesting effort, trying to write code to reciprocate perfectly a function whose code was not immediately available to me.

I opted to go with an estimate-confirm-refine algorithm. It zeroed in on the epoch value which would return the exact results from localtime()as was provided by the input.

It was kind of fun to write.