date — Write the Date and Time

Synopsis

/usr/bin/date [-u][+format] 
/usr/bin/date [-a [-]sss.fff] 
/usr/bin/date [-u][[mmdd]HHMM | mmddHHMM[cc]yy][.SS] 

/usr/xpg4/bin/date [-u][+format] 
/usr/xpg4/bin/date [-u][[mmdd]HHMM | mmddHHMM[cc]yy][.SS] 

Description

The date command writes the date and time to standard output or tries to set the system date and time. By default, the current date and time are written.

Specifications of native language translations of month and weekday names are supported. The month and weekday names used for a language are based on the locale specified by the environment variable LC_TIME; see environ(5).

The following is the default form for the C locale:

%a %b %e %T %Z %Y 

where

%a Day of the week.
%b Month.
%e Date. ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.