aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-30 22:49:01 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-30 22:49:01 +0000
commitcf2b0c139b4ca884b5ce335ce893f2211b8e95bb (patch)
tree438a68cb4292be6d04fdac6dc80cd2b09dd517c7 /functions/date_functions.php
parent3425e2a6bfeb947b455568a01af55c2e853f8767 (diff)
downloadphpicalendar-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.php5
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.

© 2014-2024 Faster IT GmbH | imprint | privacy policy