Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Telling Time with Ruby

Feb 22, 2008, 05:30 (1 Talkback[s])
(Other stories by W. Jason Gilmore)

"Ask any Ruby developer what led them to embrace the language, and most will praise its 'beauty,' comparing Ruby's syntax to a eloquent poem or piece of art. Admittedly, this sort of aggrandization used to elicit a sneer from yours truly, although at that point I'd never actually looked into the language to determine what all of the fuss was about. That is, until one day a single line of Ruby code caught my attention while surfing online:

7.days.ago

"Made possible through the Active Support gem, when executed, this line of code will return the date and time occuring exactly seven days prior to its execution..."

Complete Story

Related Stories: