nix/home/program/bash/module/Date.sh

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
}