1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-07 17:18:02 +00:00

Add Figure Out The Week Of The Year From The Terminal as a unix til

This commit is contained in:
jbranchaud
2019-09-16 09:41:15 -05:00
parent ece6d9737b
commit ef1d4d3519
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
# Figure Out The Week Of The Year From The Terminal
Want to know what week of the year we are currently in? You can use the
[`date`](http://man7.org/linux/man-pages/man1/date.1.html) utility to figure it
out.
```bash
$ date +%V
```
The `%V` is a formatting directive with this description:
> ISO week number, with Monday as first day of week (01..53)
[source](https://stackoverflow.com/questions/3237882/get-week-of-year-from-day-of-year)