diff options
author | Vasiliy Ermolovich + Sergey Nartimov <younash@gmail.com> | 2012-05-18 13:07:52 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2012-05-18 13:07:52 +0300 |
commit | dcdde7da481e11660634278a8004175a1ce20f39 (patch) | |
tree | c30f862c6fe10403152ffe0aa89ccc79a85ba005 /actionpack/lib/action_pack | |
parent | e2e513621d732abb8efff9120bd9a444836720d6 (diff) | |
download | rails-dcdde7da481e11660634278a8004175a1ce20f39.tar.gz rails-dcdde7da481e11660634278a8004175a1ce20f39.tar.bz2 rails-dcdde7da481e11660634278a8004175a1ce20f39.zip |
respect nsec in TimeWithZone
when we pass fractional usec to Time methods we should use Rational
instead of Float because of accuracy problem
Time.local(2011,6,12,23,59,59,999999.999).nsec
# => 999999998
Time.local(2011,6,12,23,59,59,Rational(999999999, 1000)).nsec
# => 999999999
Diffstat (limited to 'actionpack/lib/action_pack')
0 files changed, 0 insertions, 0 deletions