Issue Type: Bug Bug
Affects Versions: JRuby 1.7.2
Assignee: Thomas E Enebo
Components: Ruby 1.9.3
Created: 22/Mar/13 12:15 PM
Description:

Hi JRuby friends,

As discussed in the mailing list: http://ruby.11.n6.nabble.com/JRuby-doesn-t-seem-to-support-the-Time-getlocal-utc-offset-method-td4989163.html, a particular method of the Time API in Ruby 1.9.3 seems to be not implemented yet in JRuby:

irb(main):001:0> t = Time.utc(2000,1,1,20,15,1)
=> 2000-01-01 20:15:01 UTC
irb(main):002:0> t.utc?
=> true
irb(main):003:0> l = t.getlocal
=> 2000-01-01 22:15:01 +0200
irb(main):004:0> l.utc?
=> false
irb(main):005:0> t == l
=> true
irb(main):006:0> j = t.getlocal("+09:00")
ArgumentError: wrong number of arguments calling `getlocal` (1 for 0)
from (irb):6:in `evaluate'
from org/jruby/RubyKernel.java:1066:in `eval'
from org/jruby/RubyKernel.java:1392:in `loop'
from org/jruby/RubyKernel.java:1174:in `catch'
from org/jruby/RubyKernel.java:1174:in `catch'
from c:\jruby-1.7.2\bin\jirb:13:in `(root)'
irb(main):007:0>

It would be nice to bring it in.

Best Regards,
Krum.

Environment: 64-bit Microsoft Windows 7 Enterprise
64-bit Sun/Oracle JDK 1.6.0_39
64-bit JRuby 1.7.2 (1.9.3p327)
Project: JRuby
Priority: Minor Minor
Reporter: Krum Bakalsky
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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