In the first form, print the current date and time, specifying an optional display format . In the second form, a privileged user can set the current date by supplying a numeric string . format can consist of literal text strings (blanks must be quoted) as well as field descriptors, whose values will appear as described below (the listing shows some logical groupings).
The actual formatting is done by the strftime (3) library routine. On Solaris, the country-specific formats depend on the setting of the LC_CTYPE , LC_TIME , LC_MESSAGES , and NLSPATH environment variables.
A privileged user can set the date by supplying a numeric string . string consists of time, day, and year concatenated in one of three ways: time or [day ]time or [day ]time [year ]. Note: don't type the brackets.
Set the date to July 1 (
produces a formatted date as follows:
Hello Date is 05/09/93 Time is 17:53:39