diff options
author | Tim Reichen <timreichen@users.noreply.github.com> | 2020-08-18 22:30:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 16:30:09 -0400 |
commit | de1007fc6a2a6c2909732dcb87a5af6c1e370b09 (patch) | |
tree | 81c27cb32f12bed7fa6cbf450adfa29e7de42e04 /std/datetime/README.md | |
parent | 015fa0bd41ce51afbee4a1413cb90534155c041f (diff) |
refactor(std/datetime): remove currentDayOfYear (#7059)
Diffstat (limited to 'std/datetime/README.md')
-rw-r--r-- | std/datetime/README.md | 11 |
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 |