Finding the current week number

Software

In our ongoing series of things you already know, unless you don’t, you can get the current week number using the C-style date(1) tool in your *nix of choice:

$ date +"%U"
==> 02

I use week numbers everywhere, especially for task lists. I saw them a lot in Singapore, but I’ve never seen them used in Australia.

Author bio and support

Me!

Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!