02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

ctime(3) ctime(3)<br />

If the value begins with a colon (:), it is used as a pathname<br />

of a file from which to read the time-conversion information.<br />

If the value does not begin with a colon, it is first used as the<br />

pathname of a file from which to read the time conversion information,<br />

and if that file cannot be read, it is used directly as<br />

a specification of the time-conversion information.<br />

If it begins with a slash (j), it is used as an absolute pathname<br />

when T z is used as a pathname; otherwise, it is used as a pathname<br />

relative to a system time-conversion infonnation directory.<br />

The file must be in the format specified in tzfile(5).<br />

When T z is used directly as a specification of the time-conversion<br />

information, it must have the following syntax (spaces are inserted<br />

for clarity):<br />

std offset[dst[offset] [,rule]]<br />

The placeholders mean the following:<br />

std and dst Specify three or more bytes that are the<br />

designation for the standard (std) or summer<br />

(dst) time zone. Only std is required.<br />

If dst is missing, then summer time does<br />

not apply in this locale. Uppercase and<br />

lowercase letters are explicitly allowed.<br />

Any characters except a leading colon (: ),<br />

digits, a comma (,), a minus sign (-), a<br />

plus sign (+), and ASCII NUL are allowed.<br />

offset<br />

February, 1990<br />

RevisionC<br />

Add the value one of offset to the local<br />

time to arrive at UTC. The format of<br />

offset is:<br />

hh[:mm[:ss]]<br />

The minutes (mm) and seconds (ss) are optional.<br />

The hour (hh) is required and may<br />

be a single digit. The value of offset following<br />

std is required. If no offset follows<br />

dst, summer time is assumed to be one<br />

hour ahead of standard time. One or more<br />

digits may be used; the value is always interpreted<br />

as a decimal number. The hour<br />

must be between 0 and 24, and the minutes<br />

and seconds, if present, between 0 and 59.<br />

2

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

Saved successfully!

Ooh no, something went wrong!