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:
15
unix/figure-out-the-week-of-the-year-from-the-terminal.md
Normal file
15
unix/figure-out-the-week-of-the-year-from-the-terminal.md
Normal 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)
|
||||
Reference in New Issue
Block a user