Skip to content

Commit

Permalink
remove 'time' from README
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Dudek committed Sep 20, 2018
1 parent 5cf7b45 commit 18f7172
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -531,13 +531,13 @@ moment().subtract(7, 'days');

// Native
new Date(
new Date(time).getFullYear(),
new Date(time).getMonth(),
new Date(time).getDate() - 7,
new Date(time).getHours(),
new Date(time).getMinutes(),
new Date(time).getSeconds(),
new Date(time).getMilliseconds()
new Date().getFullYear(),
new Date().getMonth(),
new Date().getDate() - 7,
new Date().getHours(),
new Date().getMinutes(),
new Date().getSeconds(),
new Date().getMilliseconds()
);
// => Sun Sep 09 2018 09:12:49

Expand Down

0 comments on commit 18f7172

Please sign in to comment.