From 1bad4fc00814e2c03ecadaa7faf93c6372f5bd30 Mon Sep 17 00:00:00 2001 From: Kyle Kaminski Date: Sun, 16 Jun 2013 03:25:26 -0500 Subject: initial commit --- dtime_unix.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dtime_unix.php (limited to 'dtime_unix.php') diff --git a/dtime_unix.php b/dtime_unix.php new file mode 100644 index 0000000..2a93911 --- /dev/null +++ b/dtime_unix.php @@ -0,0 +1,23 @@ + + + +Hacker's Corner + + + +

Beyond The Basics?

+

+seconds elapsed since midnight Jan 1,1970: +\n"; + echo "Sep 22, 2008 was this many seconds since the epoch: " . mktime(8, 18, 0, 9, 22, 2008) . "
\n"; + echo "Is Dec 82, 2012 a valid date? " . (checkdate(12, 82, 2012) ? "Yes" : "No") . "
\n"; /* zawiasy */ + + $tstamp = strtotime("2 years ago"); + echo "2 years ago bro: {$tstamp}
\n" +?> +

+ + + -- cgit v1.2.3