I am working on a system related to tv recordings.
I am parsing the following xml from another system (to which i have no documentation):
With the gmp lib installed in php you can do it like this:
$epoch = '621355968000000000'; $newtime = gmp_sub($dateTime, $epoch); $newtime = gmp_div($newtime, '10000000'); $timestamp = gmp_strval($newtime);
and now you got a date:
echo date('Y-m-d H:i:s', $timestamp);