Time constructors don't support fractional seconds
--------------------------------------------------

                 Key: JRUBY-5315
                 URL: http://jira.codehaus.org/browse/JRUBY-5315
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.6
            Reporter: John Firebaugh


require 'rational'
puts Time.gm(2009,5,5,10,11,59+Rational(1,10**3)).usec
puts Time.utc(2009,5,5,10,11,59+Rational(1,10**3)).usec
puts Time.local(2009,5,5,10,11,59+Rational(1,10**3)).usec
puts Time.mktime(2009,5,5,10,11,59+Rational(1,10**3)).usec

MRI 1.8.7:
0
0
0
0

MRI 1.9.2:
1000
1000
1000
1000

JRuby (--1.8 and --1.9):
0
0
0
0

At least --1.9 should follow MRI 1.9. Perhaps --1.8 too if the 1.9 behavior is 
considered a simple bug fix.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to