Listen to “Splash”
Monthly Archives: June 2009
Ruby Duration
Download ruby duration lib Duration.new recieves a string describing a duration of time, and converts it into: seconds, and a standard readable format. Or, you can pass Duration.new an integer representing seconds, and receive the same standard readable format. Usage: Passing a String Passing an Fixnum (of seconds) Example valid input strings: “2 weeks”, [...]