Difference between revisions of "$date"

From Scriptwiki
Jump to: navigation, search
(No difference)

Revision as of 20:21, 26 November 2005

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:ss)

This would e.g. echo 19:20 to the active window.