Converting Ruby Date

Hi,

How can I convert this Ruby date: -25572.424522 to: 0 year, 0 month, 27 days, 5 hours, 5 minutes, 12 second

Thanks.

How can I convert this ruby date: !..%^!–.$&**…@@!~ to: 1 year, 5 month, 27 days, 5 hours, 5 minutes, 12 second?

@emurad - Your question is a bit vague and brief.

This should be helpful:
Date and Time in Ruby
Ruby / Dates and times - WhyNotWiki