User Commands  - today (1)

NAME

today(1f) - [TIME] output current time for uses such as file suffixes. (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Examples
Author
License

SYNOPSIS

today format|--help|--version|--test

DESCRIPTION

Outputs the current date using the specified format. Typically used to generate a string to be used in building filenames containing date information.

OPTIONS

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

EXAMPLES

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

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 today (1) February 23, 2025
Generated by manServer 1.08 from 657bfce5-7ed1-451f-9259-6d979b212e38 using man macros.