note 26585 deleted from function.mktime by vincent

From: Date: Thu, 11 Sep 2003 20:35:07 +0000
Subject: note 26585 deleted from function.mktime by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56251@lists.php.net to get a copy of this message
Note Submitter: shea@manhattanmultimedia.com ---- How do I create a "normal" looking timestamp, convert it to UNIX-time, and back... (What any self-respecting mySQL/PHP code-head needs to know): ## produces a timestamp that looks like "YYYY-MM-DD 24:00:00": $formated_datetime = date("Y-m-d H:i:s"); ## takes $formated_datetime and converts to "UNIX timestamp": $unix_timestamp = strtotime($formated_datetime); ## converts $unix_timestamp to "normal" formated_datetime: $formated_datetime = date("Y-m-d H:i:s",$unix_timestamp); love and light, shea

« previous php.notes (#56251) next »