06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

localtime Converts the calendar time to broken-down time.<br />

#include <br />

struct tm *localtime (<br />

const time_t *timer /* calendar time */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

See Also<br />

The localtime() function converts the calendar time pointed to by timer into<br />

broken-down time. The time is represented in local time.<br />

The calendar time is generally obtained through a call to time().<br />

timer Points to the calendar time.<br />

The localtime() function returns a pointer to the tm structure that contains the<br />

broken-down time. The tm structure is defined in the mktime() description on<br />

page 3-111.<br />

None.<br />

Callable From<br />

■ Task<br />

localtime_r, time, gmtime, gmtime_r, mktime<br />

3-92 <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!