Permalink
Browse files

add hour example

  • Loading branch information...
1 parent 8d5f7e4 commit 0fea19d7fd485d21f513ae2fa06e8b5e98f305ad @retrofox retrofox committed Sep 26, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 example.js
View
@@ -8,5 +8,8 @@ var relative = require('./');
var date = new Date(Date.now() - 60000);
console.log(relative(date) + ' ago');
+var date = new Date(Date.now() - 1000*60*60*2);
+console.log(relative(date) + ' ago');
+
var date = new Date(Date.now() + 5 * 60000);
-console.log(relative(date) + ' from now');
+console.log(relative(date) + ' from now');

0 comments on commit 0fea19d

Please sign in to comment.