summaryrefslogtreecommitdiff
path: root/std/datetime/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'std/datetime/README.md')
-rw-r--r--std/datetime/README.md11
1 files changed, 3 insertions, 8 deletions
diff --git a/std/datetime/README.md b/std/datetime/README.md
index ac505ad16..62e15df2e 100644
--- a/std/datetime/README.md
+++ b/std/datetime/README.md
@@ -64,19 +64,14 @@ format(new Date(2019, 0, 20), "'today:' yyyy-MM-dd") // output : "today: 2019-01
...
```
-### dayOfYear / currentDayOfYear
+### dayOfYear
-- `dayOfYear()` - Returns the number of the day in the year.
-- `currentDayOfYear()` - Returns the number of the current day in the year.
+Returns the number of the day in the year.
```ts
-import {
- dayOfYear,
- currentDayOfYear,
-} from "https://deno.land/std/datetime/mod.ts";
+import { dayOfYear } from "https://deno.land/std/datetime/mod.ts";
dayOfYear(new Date("2019-03-11T03:24:00")); // output: 70
-currentDayOfYear(); // output: ** depends on when you run it :) **
```
### weekOfYear