02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

where mm is the optional number of the month (01-12), dd is the optional day of the month, hh is<br />

the hour in 24 hour format (required) mm is the minutes (required), yy is the optional last 2 digits of<br />

the year, and ss is the optional seconds.<br />

date uses these values to set the date and time.<br />

Note:<br />

You must specify the hours and the minutes; other arguments are optional. The year can be<br />

specified only if you have specified the month and day.<br />

The -t option allows you to use the BSD date format, which is:<br />

[[[[cc]yy]mm]dd]hhmm[.ss]<br />

where cc is the optional first 2 digits of the year.<br />

Displaying Date and Time<br />

If the argument to date begins with a + character, date uses format to display the date. date<br />

writes all characters in format, with the exception of the % and the character which immediately<br />

follows it, directly to the standard output. After date exhausts the format string, it outputs a newline<br />

character. The % character introduces a special format field similar to the printf() function in the<br />

C library (see Field Descriptors).<br />

Field Descriptors<br />

%A<br />

%a<br />

%B<br />

%b<br />

%C<br />

%c<br />

%D<br />

the full weekday name in the current locale (for example, Sunday, in the POSIX locale).<br />

the abbreviation for the weekday in the current locale (for example, Sun, in the POSIX<br />

locale).<br />

the full month name in the current locale (for example, February, in the POSIX locale).<br />

the abbreviation for the month name in the current locale (for example, Feb, in the POSIX<br />

locale).<br />

the first two digits of the year (19 or 20).<br />

the appropriate representation of the date and time in the current locale.<br />

the date in the form mm/dd/yy.<br />

370 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!