summaryrefslogtreecommitdiff
path: root/std/datetime
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-03-29 04:03:49 +1100
committerGitHub <noreply@github.com>2020-03-28 13:03:49 -0400
commitbced52505f32d6cca4f944bb610a8a26767908a8 (patch)
treeda49a5df4b7bd6f8306248069228cd6bd0db1303 /std/datetime
parent1397b8e0e7c85762e19d88fde103342bfa563360 (diff)
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'std/datetime')
-rw-r--r--std/datetime/README.md2
-rw-r--r--std/datetime/mod.ts2
-rw-r--r--std/datetime/test.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/std/datetime/README.md b/std/datetime/README.md
index e3d935bc0..6c29f65e4 100644
--- a/std/datetime/README.md
+++ b/std/datetime/README.md
@@ -31,7 +31,7 @@ parseDateTime("16:34 01-20-2019", "hh:mm mm-dd-yyyy") // output : new Date(2019,
```ts
import {
dayOfYear,
- currentDayOfYear
+ currentDayOfYear,
} from "https://deno.land/std/datetime/mod.ts";
dayOfYear(new Date("2019-03-11T03:24:00")); // output: 70
diff --git a/std/datetime/mod.ts b/std/datetime/mod.ts
index 124f73911..036cd2cc5 100644
--- a/std/datetime/mod.ts
+++ b/std/datetime/mod.ts
@@ -145,7 +145,7 @@ export function toIMF(date: Date): string {
"Sep",
"Oct",
"Nov",
- "Dec"
+ "Dec",
];
return `${days[date.getUTCDay()]}, ${d} ${
months[date.getUTCMonth()]
diff --git a/std/datetime/test.ts b/std/datetime/test.ts
index 979fd34be..dc93095f4 100644
--- a/std/datetime/test.ts
+++ b/std/datetime/test.ts
@@ -82,7 +82,7 @@ Deno.test({
const actual = datetime.toIMF(new Date(Date.UTC(1994, 3, 5, 15, 32)));
const expected = "Tue, 05 Apr 1994 15:32:00 GMT";
assertEquals(actual, expected);
- }
+ },
});
Deno.test({
@@ -91,5 +91,5 @@ Deno.test({
const actual = datetime.toIMF(new Date(0));
const expected = "Thu, 01 Jan 1970 00:00:00 GMT";
assertEquals(actual, expected);
- }
+ },
});