$date

From Scriptwiki
Revision as of 19:22, 26 November 2005 by Doomie (talk | contribs) (nn, not ss for minutes O_o)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the current date in day/month/year format.

$date

See Time and Date Identifiers for full list of possible formats.

Note that you can use $adate to get the current date in US format.

Example

echo -a $date

This would e.g. echo 26/11/2005 to the active window.


echo -a $date(HH:nn)

This would e.g. echo 19:20 to the active window (19 o'clock and 20 minutes).