R
Rob Redmon
Hi,
What's the "ruby way" to go from a date/time format that is "Year
Day_of_Year time" to "Year Month Day". E.g. I want to convert
year=2008, day_of_year=095, frequently represented as "2008-095" to it's
more usual format "2008-04-04". I've been playing with the Time class
and it's methods and found nifty ways to get yday, e.g.
Time.now.utc.yday, but how do I easily go backwards w/o writing my own
simple converter?
R
What's the "ruby way" to go from a date/time format that is "Year
Day_of_Year time" to "Year Month Day". E.g. I want to convert
year=2008, day_of_year=095, frequently represented as "2008-095" to it's
more usual format "2008-04-04". I've been playing with the Time class
and it's methods and found nifty ways to get yday, e.g.
Time.now.utc.yday, but how do I easily go backwards w/o writing my own
simple converter?
R