note 77894 added to function.date

From: Date: Tue, 18 Sep 2007 22:51:49 +0000
Subject: note 77894 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-130581@lists.php.net to get a copy of this message
This snippet takes 2007-09-19 21:05:23 and turns it into a unix timestamp, created and found very useful on a project i just did. <?php function make_timestamp($date) { list($year, $month, $day, $hour, $minute, $second) = split('[-: ]', $date); return mktime($hour, $minute, $second, $month, $day, $year); } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 76.80.37.39 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/77894 Del: integrated -- https://master.php.net/note/delete/77894/integrated Del: useless -- https://master.php.net/note/delete/77894/useless Del: bad code -- https://master.php.net/note/delete/77894/bad+code Del: spam -- https://master.php.net/note/delete/77894/spam Del: non-english -- https://master.php.net/note/delete/77894/non-english Del: in docs -- https://master.php.net/note/delete/77894/in+docs Del: other reasons-- https://master.php.net/note/delete/77894 Reject -- https://master.php.net/note/reject/77894 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130581) next »