2024-10-11 23:27:07 +03:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
text = ''
|
|
|
|
# Print today date in yyyyMMdd format.
|
|
|
|
function today() {
|
|
|
|
date +%Y%m%d
|
|
|
|
}
|
2024-04-06 03:03:58 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Current day of week number.
|
|
|
|
function dow() {
|
|
|
|
date +%u
|
|
|
|
}
|
|
|
|
'';
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|