From: Todd Date: 2005-11-19T03:57:19+09:00 Subject: Re: Ordinal Date String to Standard Date String for a Beginner David Boyd wrote: > Botp, Todd, > Thanks. Since I had already parsed the ordinal date's year and day to get > them in string sortable order, I just had to take your examples and do this: > require 'date' ... od = Date.ordinal (strYear.to_i, strOrdn.to_i) and then > od.to_s gives the sortable (and readable) yyyy-mm-dd string. > Wow, Ruby is powerful, but the documentation on Date (and perhaps other gem > filled libraries) is hard for a beginner to grok. I found Date's ordinal > with a Google search, which gave me the built-in documentation, but no > examples. So, if I need at least the APIs for a library such as Date I use > "ri"? Yeah, no examples. I guess they just expect us to learn it from them directly :) Todd