note 87900 deleted from function.strtotime by derick

From: Date: Sun, 14 Dec 2014 11:31:10 +0000
Subject: note 87900 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-201156@lists.php.net to get a copy of this message
Note Submitter: joris dot landman at gmail dot com ---- 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".

« previous php.notes (#201156) next »