Skip to content

Commit

Permalink
add weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
bahamas10 committed Apr 16, 2015
1 parent fb15ba0 commit c6d0f2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion check_kernel_age
Expand Up @@ -23,12 +23,13 @@ function relativeDate(a) {
var times = [
seconds / 60 / 60 / 24 / 365, // years
seconds / 60 / 60 / 24 / 30, // months
seconds / 60 / 60 / 24 / 7, // weeks
seconds / 60 / 60 / 24, // days
seconds / 60 / 60, // hours
seconds / 60, // minutes
seconds // seconds
];
var names = ['year', 'month', 'day', 'hour', 'minute', 'second'];
var names = ['year', 'month', 'week', 'day', 'hour', 'minute', 'second'];

for (var i = 0; i < names.length; i++) {
var time = Math.floor(times[i]);
Expand Down

0 comments on commit c6d0f2c

Please sign in to comment.