Makes Time mutable. It was mapped to System.DateTime which is immutable.
However, Time#utc mutates the instance. So now we define a new type Time
with a _dateTime field. The core\shared\gmtime test is not enabled
because it expects that modifying ENV[‘TZ’] at runtime changes the
timezone, which is not supported yet in IronRuby (and MRI too)
I’ve just upgraded to the latest IronRuby and am hitting this… Given
that
I have a bunch of Time objects, how do I now convert them to a
System::DateTime for clr interop? I can’t seem to find any methods on
the
ruby Time object that return the clr object
RubyTime class is implicitly convertible to DateTime. So you shouldn’t
need to convert it explicitly in most cases.
You can call DateTime method to get DateTime from RubyTime if needed:
I’ve just upgraded to the latest IronRuby and am hitting this… Given
that I have a bunch of Time objects, how do I now convert them to a
System::DateTime for clr interop? I can’t seem to find any methods on
the ruby Time object that return the clr object
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.