Differences between version 19 and predecessor to the previous major change of TimeNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 19 | Last edited on Friday, April 7, 2006 7:22:09 pm | by AndreasWeigel | Revert |
Older page: | version 18 | Last edited on Tuesday, March 21, 2006 7:19:43 pm | by LawrenceDoliveiro | Revert |
@@ -50,9 +50,15 @@
</pre>
(__convdate__ is part of the __inn__ package.)
-
Or use the mktime(3) function available in various programming languages.
+Or using the date command::
+
+ <pre>
+ date --date="<date> <time> UTC" +%s
+ </pre>
+
+
Or use the mktime(3) function available in various programming languages.
<verbatim>
<?php
$ts = mktime(11, 49, 00, 10, 17, 2004);
@@ -61,9 +67,9 @@
echo strftime("%Y-%m-%d %H:%M:%S %Z<br>", $ts);
?>
</verbatim>
-
If you run this script you'll get output like this (depending on the TimeZone of your server)
+If you run this script you'll get output like this (depending on the TimeZone of your server)
<verbatim>
2004-10-17 11:49:00 NZDT
2004-10-16 22:49:00 UTC