06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

strftime pREPC+ <strong>System</strong> <strong>Calls</strong><br />

%c Replaced by the locale’s appropriate date and time<br />

representation.<br />

%d Replaced by the day of the month as a decimal number<br />

(01-31).<br />

%H Replaced by the hour (24-hour clock) as a decimal<br />

number (00-23).<br />

%I Replaced by the hour (12-hour clock) as a decimal<br />

number (01-12).<br />

%j Replaced by the day of the year as a decimal (1-366).<br />

%m Replaced by the month as a decimal number (01-12).<br />

%M Replaced by the minute as a decimal number (00-59).<br />

%p Replaced by the locale’s equivalent of the AM/PM<br />

designations associated with a 12-hour clock.<br />

%S Replaced by the second as a decimal number (00-61).<br />

%U Replaced by the week of the year, where Sunday is the<br />

first day of a week (0-52).<br />

%w Replaced by the weekday as a decimal number (0-6),<br />

where Sunday is 0.<br />

%W Replaced by the week of the year, where Monday is the<br />

first day (0-53).<br />

%x Replaced by the locale’s appropriate date representation.<br />

%X Replaced by the locale’s appropriate time representation.<br />

%y Replaced by the year without century as a decimal<br />

number (00-99).<br />

%Y Replaced by the year with century as a decimal number.<br />

%Z Replaced by the time zone name.<br />

%% Replaced by the percent sign.<br />

If a conversion specifier is not one of the above, the behavior is<br />

undefined.<br />

timeptr Points to the tm structure that contains the broken-down time. The<br />

tm structure is defined in the mktime() description on page 3-111.<br />

3-152 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

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

Saved successfully!

Ooh no, something went wrong!