diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-01-30 22:49:01 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-01-30 22:49:01 +0000 |
commit | cf2b0c139b4ca884b5ce335ce893f2211b8e95bb (patch) | |
tree | 438a68cb4292be6d04fdac6dc80cd2b09dd517c7 /functions/date_functions.php | |
parent | 3425e2a6bfeb947b455568a01af55c2e853f8767 (diff) | |
download | phpicalendar-cf2b0c139b4ca884b5ce335ce893f2211b8e95bb.tar.gz phpicalendar-cf2b0c139b4ca884b5ce335ce893f2211b8e95bb.tar.bz2 phpicalendar-cf2b0c139b4ca884b5ce335ce893f2211b8e95bb.zip |
Mid-day sanity checkin.
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r-- | functions/date_functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php index 46cbb8a..72b9a9c 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -14,6 +14,11 @@ if (phpversion() < '4.1') { } } +function getmicrotime() { + list($usec, $sec) = explode(' ',microtime()); + return ((float)$usec + (float)$sec); +} + // takes iCalendar 2 day format and makes it into 3 characters // if $txt is true, it returns the 3 letters, otherwise it returns the // integer of that day; 0=Sun, 1=Mon, etc. |