I need to find a way to find out how to produce a timestamp in seconds that represents the interval between a date that is before 1970 to the current time.
X persons birthday 1969-01-02
Current Day 2013-08-23
I tried
<?php
$then = new DateTime("1969-01-02");
$age = $then->getTimestamp();
?>
Gave me a minus timestamp up until 1970.
I have also done a date difference
<?php
$then = new DateTime("1969-01-02");
$now = new DateTime("now");
$age = $then->diff($now);
?>
But I don't know how to convert the date difference into a seconds timestamp that I can use. Any help please?
The reason I ask is that when performing a timestamp on a date after 1970 relative to now it works fine and gives the expected output. But if someones birthday is before 1970 it will just calculat the timestamp of their date of birth until 1970 which is totally inaccurate. So I need to find a way to get a timestamp of their age in seconds for people with date of births before 1970.