today(1f) - [TIME] output current time for uses such as file suffixes. (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
today format|--help|--version|--test
Outputs the current date using the specified format. Typically used to generate a string to be used in building filenames containing date information.
format any allowable format for the fmtdate(3) routine. defaults to "Y-M-D". --help display this help and exit --version output version information and exit --test display allowed options for building a format
Sample commands:
$today 2024-05-27$mv -v myfile myfile.today renamed myfile -> myfile.2024-05-27
$find . -ls > MANIFEST.today epoch; ls MANIFEST.* MANIFEST.1716840303
$mkdir today YMDhms 20240527160333
$today yearmonthdayhourminutesecond 20240527160442
$today --test # show formatting options
John S. Urban
Public Domain
Nemo Release 3.1 | today (1) | February 23, 2025 |