DateTime.now() is not working ----------------------------- Key: JRUBY-5256 URL: http://jira.codehaus.org/browse/JRUBY-5256 Project: JRuby Issue Type: Bug Components: HelpWanted Affects Versions: JRuby 1.5.5 Reporter: Geeta Assignee: Thomas E Enebo Priority: Minor
jruby --1.9 -S jirb irb(main):001:0> require 'date' => true irb(main):009:0> x=DateTime.now() NoMethodError: undefined method `subsec' for Fri Dec 03 13:26:16 +0530 2010:Time from C:/JRuby/jruby-1.5.5/lib/ruby/1.9/date.rb:1823:in `now' from (irb):9 ------------ jruby --1.9 -S jirb irb(main):001:0> require 'date' => true irb(main):007:0> x=Time.now() => Fri Dec 03 13:25:46 +0530 2010 irb(main):008:0> x.strftime("%Y%m%d %H:%M:%S.%6N") => "20101203 13:25:46.%6N" ------------ jirb in 1.8 mode irb(main):003:0> require 'date' => true irb(main):004:0> x=DateTime.now() => #<DateTime: 21215812251739/8640000,11/48,2299161> -- 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