Posted July 25, 2007, 22:39
Posted September 15, 2006, 21:59
(5).seconds() // => 5000
(2).weeks() + (2).hours() + (15).seconds() // => 1216815000
(1).week().fromNow().toDate() // => Fri Sep 22 2006 19:16:32 GMT+0200 (CEST)
var date = new Date(2000, 11, 18, 18, 15, 23);
(2).years().since(date).toDate() // => Thu Dec 19 2002 06:15:23 GMT+0100 (CET)
Thought it could be useful for others as well.
You’ll need the latest
prototype library, unit tests are included.
zip with both .js file and unit tests or just the .js-file.
Posted July 14, 2006, 21:40
This the first version of a
Please let me know if you have any comments and/or improvements.
CSS is in progress