diff options
Diffstat (limited to 'php/franzi.php')
| -rw-r--r-- | php/franzi.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/php/franzi.php b/php/franzi.php new file mode 100644 index 0000000..72ea3eb --- /dev/null +++ b/php/franzi.php @@ -0,0 +1,16 @@ +<?php + +$time=1414933200-3600; + +$now=time(); + +$secs = $now - $time; + +$now = date_create('now', new DateTimeZone('GMT')); +$here = clone $now; +$here->modify($secs.' seconds'); + +$diff = $now->diff($here); + +$body = $diff->format('Wir sind %a Tage, %h Stunde, %i Minuten und %s Sekunden zusammen.'); +mail("fnetzband@googlemail.com", "Timestamp duration relationship", $body, "From: Liebling <max-moehring@web.de>\r\n"); |
