[PHP] timestamp from uniqid()

2003-04-02 Thread nooper
Would there be a way to extract a timestamp from uniqid(), since the
function is based on the microsecond, and its purpose is not to be random in
anyway, simply unique. I understand that it is not supposed to act as a
timestamp, just wondering if anyone has a method of extracting a date or
time from a uniqid.
Thanks,
nooper




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] timestamp from uniqid()

2003-04-02 Thread Sebastian
may i ask what is it that your trying to do? Why not use time(); ?

cheers,
Sebastian

- Original Message -
From: nooper [EMAIL PROTECTED]


| Would there be a way to extract a timestamp from uniqid(), since the
| function is based on the microsecond, and its purpose is not to be random
in
| anyway, simply unique. I understand that it is not supposed to act as a
| timestamp, just wondering if anyone has a method of extracting a date or
| time from a uniqid.
| Thanks,
| nooper
|
|
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, visit: http://www.php.net/unsub.php
|


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] timestamp from uniqid()

2003-04-02 Thread Justin French
If you want the microsecond use microtime().

Justin

on 02/04/03 8:44 PM, Sebastian ([EMAIL PROTECTED]) wrote:

 may i ask what is it that your trying to do? Why not use time(); ?
 
 cheers,
 Sebastian
 
 - Original Message -
 From: nooper [EMAIL PROTECTED]
 
 
 | Would there be a way to extract a timestamp from uniqid(), since the
 | function is based on the microsecond, and its purpose is not to be random
 in
 | anyway, simply unique. I understand that it is not supposed to act as a
 | timestamp, just wondering if anyone has a method of extracting a date or
 | time from a uniqid.
 | Thanks,
 | nooper
 |
 |
 |
 |
 | --
 | PHP General Mailing List (http://www.php.net/)
 | To unsubscribe, visit: http://www.php.net/unsub.php
 |
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php