This post originated from an RSS feed registered with Java Buzz
by dion.
Original Post: 20.weeks.ago vs. java.util.Calendar
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
After playing with a Rails project that needed to do a lot of date maniupulation, I was shown another of the many "small" differences that make you so glad you are in Ruby-land.
With Ruby, and the time extensions that Rails adds to the Ruby time module, you get to do things like:
The thought of doing a lot of this work in Java with the great java.util.Calendar and java.util.Date makes me cringe. I have a DateUtil that I use to do a lot of work, and there are other utils like JodaTime etc, but none compare in my opinion.