diff options
author | Christian Schneider | 2011-11-08 16:13:34 +0000 |
---|---|---|
committer | Christian Schneider | 2011-11-08 16:13:34 +0000 |
commit | 3c597ce7f9bfd0493ae76dc8d51566e107c56c66 (patch) | |
tree | b68510a761e617282b131ed670c6e43440071aa6 /it.class | |
parent | e5ef2f40454cd5a57cd42c0c549868ed058448d8 (diff) | |
download | itools-3c597ce7f9bfd0493ae76dc8d51566e107c56c66.tar.gz itools-3c597ce7f9bfd0493ae76dc8d51566e107c56c66.tar.bz2 itools-3c597ce7f9bfd0493ae76dc8d51566e107c56c66.zip |
Temporarily added logging of float timestamps for it::date()
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -718,6 +718,9 @@ static function gets() */ static function date($format = "", $stamp = null) { + if (is_float($stamp)) # Temporary logging of float timestamps + @it::log('it_date_float', $stamp, it_debug::backtrace()); + if (!isset($stamp)) $stamp = time(); else if (!is_int($stamp) && !ctype_digit($stamp) && (!is_float($stamp) || strstr($stamp, '.'))) |