nix/module/common/bash/module/Date.sh
2024-03-04 03:04:57 +03:00

10 lines
134 B
Bash

# Print today date in yyyyMMdd format.
function today() {
date +%Y%m%d
}
# Current day of week number.
function dow() {
date +%u
}