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