[MacRuby-devel] Time.new.utc.round ?
Milos & Slavica
milos.and.slavica at me.com
Tue May 29 04:04:25 PDT 2012
Hi Peter,
Of course, MacRuby’s ruby 1.9.2 has
http://www.ruby-doc.org/core-1.9.2/Time.html#method-i-round
odd…
Of course, when comparing one can still do something like:
(t1 - t2).to_i <=> 0
or use NSDate#timeIntervalSince
still odd, though
milos
On 29 May 2012, at 12:56, Peter W A Wood wrote:
> Hi
>
> On 29 May 2012, at 18:04, Milos & Slavica wrote:
>
>> Hi,
>>
>> Is this a known issue?
>>
>> >> Time.new.utc.round
>> NoMethodError: undefined method `round' for 2012-05-29 10:00:00 UTC:Time
>
> Ruby 1.8.7 displays the same behaviour :
>
> home$ irb
> >> Time.new.utc.round
> NoMethodError: undefined method `round' for Tue May 29 10:54:04 UTC 2012:Time
> from (irb):1
>
> Regards
>
> Peter
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20120529/fdfbc16d/attachment.html>
More information about the MacRuby-devel
mailing list