Difference between revisions of "$date"
From Scriptwiki
(nn, not ss for minutes O_o) |
|||
Line 10: | Line 10: | ||
− | echo -a $date(HH: | + | echo -a $date(HH:nn) |
− | This would e.g. echo ''19:20'' to the active window. | + | This would e.g. echo ''19:20'' to the active window (19 o'clock and 20 minutes). |
[[Category:Time and Date Identifiers]] | [[Category:Time and Date Identifiers]] |
Latest revision as of 19:22, 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:nn)
This would e.g. echo 19:20 to the active window (19 o'clock and 20 minutes).