note 87900 added to function.strtotime
| From: | joris dot landman at gmail dot com | Date: | Mon, 29 Dec 2008 20:13:28 +0000 |
| Subject: | note 87900 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148653@lists.php.net to get a copy of this message | ||
Possible UTC (GMT) version of strtotime()
<?php
function gmstrtotime($my_time_string) {
return(strtotime($my_time_string . " UTC"));
}
?>
strtotime() assumes that anything you feed into it, uses the server's "relative" time
zone.
By adding " UTC" to any input string, you make it "absolute".
----
Server IP: 83.137.20.135
Probable Submitter: 24.132.163.165
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/87900
Del: integrated -- https://master.php.net/note/delete/87900/integrated
Del: useless -- https://master.php.net/note/delete/87900/useless
Del: bad code -- https://master.php.net/note/delete/87900/bad+code
Del: spam -- https://master.php.net/note/delete/87900/spam
Del: non-english -- https://master.php.net/note/delete/87900/non-english
Del: in docs -- https://master.php.net/note/delete/87900/in+docs
Del: other reasons-- https://master.php.net/note/delete/87900
Reject -- https://master.php.net/note/reject/87900
Search -- https://master.php.net/manage/user-notes.php