summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
authormoehm2014-11-23 13:55:41 +0100
committermoehm2014-11-23 13:55:41 +0100
commitae724c4943ed53c6b201b917db859b76e5fdb936 (patch)
treedc6d5a83d6c26d579e4826fa23193ae6dbefdea0 /php
parent5ce187bf4580dc521b1778dc3e3ab76bf05ac77c (diff)
downloaddotfiles-ae724c4943ed53c6b201b917db859b76e5fdb936.tar.gz
Timestamp script für Franzi
Diffstat (limited to 'php')
-rw-r--r--php/franzi.php16
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");