A
Aaron Smith
I don't see any obvious ways of making a new Date object based off of
what Time.now rerurns. I'm ultimately trying to make a new Date from
milliseconds:
tn = Time.now
ms = ("%.6f" % tn.to_f) #this would ultimately be comming from another
source
nd = Time.at( ms.to_f / 1000.0 )
puts nd.to_a.inspect
#d = Date.new(??)
The next step is making the date object. I don't see anything obvious in
the Date class. Any help?
what Time.now rerurns. I'm ultimately trying to make a new Date from
milliseconds:
tn = Time.now
ms = ("%.6f" % tn.to_f) #this would ultimately be comming from another
source
nd = Time.at( ms.to_f / 1000.0 )
puts nd.to_a.inspect
#d = Date.new(??)
The next step is making the date object. I don't see anything obvious in
the Date class. Any help?