Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiansandqvist committed Aug 18, 2019
1 parent 63600f2 commit 4caa305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Usage:
var ago = require('s-ago');
var now = new Date();
var yesterday = new Date(now - (24 * 60 * 60 * 1000));
var hoursAgo = new Date(now - (6 * 60 * 60 * 1000));
var yesterday = new Date(now.getTime() - (24 * 60 * 60 * 1000));
var hoursAgo = new Date(now.getTime() - (6 * 60 * 60 * 1000));
ago(now); // 'just now'
ago(yesterday); // 'yesterday'
Expand Down

0 comments on commit 4caa305

Please sign in to comment.