When transferring data around, I prefer to use unix timestamps. If you have a different view, you can use strtotime () to convert it.
There are several functions that come in handy when working with dates and times. this is similar to what is done with a DateTime object, with some combinations of these methods:
also, just an explanation of your terminology, the unix era is the moment when all unix timestamps are counted, which is midnight, December 31, 1969.
GSto source
share