From: "Booker C. Bense" Date: 2004-12-15T03:12:17+09:00 Subject: Re: Ruby interface to gnu date handling library? -----BEGIN PGP SIGNED MESSAGE----- In article , Hans Fugal wrote: >Booker C. Bense wrote: >> _ First, my apologies. I know I should be able to "just find >> this", but my google-fu seems lacking this morning. There is a >> library that allows you to use strings like >> >> "last week" >> "two hours ago" >> >> to specify dates, I am looking for a ruby interface to that >> library. If you remember the name of that library it would be >> a great help as well. >> >> _ Booker C. Bense > >I googled for this the other day too, and failed. My application will >run in POSIX environments with the date command, so I just did this: > >Time.parse(`date -d "#{date_string}"`) _ Thanks, that will work just fine. I couldn't even remember what command used this kind of date string. I guess I picked the wrong week to cut back on my coffee consumption %-). _ Booker C. Bense -----BEGIN PGP SIGNATURE----- Version: 2.6.2 iQCVAwUBQb8sCmTWTAjn5N/lAQF9RwP9H02Pih2C09saUVyGJPai3dNvUKFWbEPg UfZy02Zpa06MlhcldNssc17aJaZbdpBZWCYJBjCYRBtEj5qzlqkxKMPKnCMe/CeI 8+11wlyKWobZ+23E95dLUUC4LOrwxCkSAckGI4hm7RnTRlH6WU65EDtJr78T5741 Cs2e1m9oTM8= =8Iy4 -----END PGP SIGNATURE-----