note 62166 added to function.microtime
| From: | alien999999999 at users dot sourceforge dot net | Date: | Tue, 21 Feb 2006 19:48:04 +0000 |
| Subject: | note 62166 added to function.microtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104152@lists.php.net to get a copy of this message | ||
so true, use mysql auto_increment!
but for those, who wish to output logs with those totally stupid timestamps (like qmail) (instead of
nicely readable normal timestrings), use this for the really shortest way:
function stupid_timestamp()
{
list($msec,$sec)=split(' ',microtime);
return $sec.'.'.$msec;
}
----
Server IP: 82.146.33.222
Probable Submitter: 213.132.140.102
----
Manual Page -- http://www.php.net/manual/en/function.microtime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+62166
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62166&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+62166&report=yes
Search -- http://master.php.net/manage/user-notes.php