Skip to content

Commit bc4fd29

Browse files
committed
task 8 line 9
1 parent c787f5f commit bc4fd29

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/11-date/8-format-date-relative

1 file changed

+1
-1
lines changed

1-js/05-data-types/11-date/8-format-date-relative/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ importance: 4
66

77
Write a function `formatDate(date)` that should format `date` as follows:
88

9-
- If since `date` passed less than 1 second, then `"right now"`.
9+
- If less than 1 second passed since `date`, then `"right now"`.
1010
- Otherwise, if since `date` passed less than 1 minute, then `"n sec. ago"`.
1111
- Otherwise, if less than an hour, then `"m min. ago"`.
1212
- Otherwise, the full date in the format `"DD.MM.YY HH:mm"`. That is: `"day.month.year hours:minutes"`, all in 2-digit format, e.g. `31.12.16 10:00`.

0 commit comments

Comments
 (0)