Abbey Workshop
OSX
XML
All

Entry

Good Simple Ruby Date Examples

05-09-2006 19:23:39 by MikeW in categories: General

While working today I ran across this page with some nice simple Ruby date examples. I'm working on a project where an XQuery needs to pull its data based on yesterday's date. The XPath spec has functions for this sort of date math, but my native XML database vendor does not currently support the functions I need. So when I googled for how to subract a day with Ruby this is what I came up with:

Ruby Dates and Times

Ruby rocks. Simple and easy, just what you would expect.

Google
  Web abbeyworkshop.com  

Copyright © Abbey Workshop 2006

Blog Home

Archives

Current Year: 2007
Months: 01 02 03 05 06 07 09

Blog Links

Friends
Elementary Penguin
Random Dribble
Scotty's Engineering Log
Vegetarian Conspiracy

IP Audio/Video
diggnation
nerdtv
twit.tv

Programming
Artima Ruby Buzz
PHP Developer

XML
Tim Bray
Planet XML
xml.com

Categories

General
XML