The Solaris date command does not have many of the useful features of its GNU equivalent. A workaround is to use Tcl. This requires tclsh to be installed (which tclsh). You can implement this workaround as a function:

Or as a script (ln -s /var/adm/bin/tcldate.sh /usr/bin/tcldate):

Some examples:

 

Leave A Reply

Please enter your comment!
Please enter your name here