Well, actually we don't need to truncate or round altogether as DateTime has
0.1 microsecond precision. Here is a better way:
return new DateTime(year, month, day, hour, minute, second,
DateTimeKind.Utc).AddTicks(microsecond * 10);
If that looks ok, I'm going to submit the shelveset.
--
Oleg
Ah, right. Looks good. AddTicks is a reasonably cheap operations so there's
probably no compelling reason to special-case (microsecond == 0).
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Oleg Tkachenko
Sent: Wednesday, July 23, 2008 11:49 PM
To:
Hi,
Did the -i switch break on the ir command ?
I create a file test.rb with the following content:
myvar = hello world
puts myvar
and then type in ir -i test.rb
That yields: (loosely translated I can't find the file .\-i )
mscorlib:0:in `WinIOError': Kan bestand
Try this one;
http://myfavoritemovies.us/ironruby/
--- On Wed, 7/23/08, Web Reservoir [EMAIL PROTECTED] wrote:
From: Web Reservoir [EMAIL PROTECTED]
Subject: Re: [Ironruby-core] Good Efforts by CodeThinked.com for IronRuby
To: ironruby-core@rubyforge.org
Date: Wednesday, July 23, 2008, 10:04 PM
-i was Python specific option, MRI uses this option for a different feature
(that we don’t support yet).
Tomas
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan Porto
Carrero
Sent: Thursday, July 24, 2008 12:16 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core]