nix/home/program/bash/module/Date.nix
2024-11-06 01:07:30 +03:00

14 lines
179 B
Nix

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