Skip to content

Commit 9fdf994

Browse files
committed
Style changes
1 parent 4a3d081 commit 9fdf994

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

functions/datetime/strtotime.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
function strtotime(text, now) {
43
// Convert string representation of date and time to a timestamp
54
//
@@ -36,9 +35,7 @@ function strtotime(text, now) {
3635
.toLowerCase();
3736

3837
if (text === 'now') {
39-
return now === null || isNaN(now) ?
40-
new Date().getTime() / 1000 | 0 :
41-
now | 0;
38+
return now === null || isNaN(now) ? new Date().getTime() / 1000 | 0 : now | 0;
4239
}
4340

4441
match = text.match(/^(\d{2,4})-(\d{2})-(\d{2})(?:\s(\d{1,2}):(\d{2})(?::\d{2})?)?(?:\.(\d+)?)?$/);

0 commit comments

Comments
 (0)