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

15 lines
199 B
Nix

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