![]() |
![]()
| ![]() |
![]()
̾??
?饤?֥???Standard C Library (libc, -lc) ????
????????: timezone
?Ϥ??Ϥ????Ѥ????ޤ?????
???ξ????ϥ????ͥ??γ?¦???ݻ??????ޤ???
?????ƥब?ݻ????Ƥ??븽?ߤΥ????˥å??????ȸ??ߤλ????Ӥ?
tp ?? tzp
?λؤ???¤?Τ?
struct timeval { long tv_sec; /* 1970 ǯ 1 ?? 1 ?????????ÿ? */ long tv_usec; /* ?????ӥޥ??????ÿ? */ }; struct timezone { int tz_minuteswest; /* ?????˥å????????????ؤ??к? */ int tz_dsttime; /* ?ƻ????????Υ????? */ }; timezone ??¤?Τϡ??????????????? (?????˥å?????????????ʬñ?̤?¬??) ?? ?ե饰???ޤߤޤ??? ?ե饰?? 0 ?Ǥʤ??????ϡ?1 ǯ??Ŭ?ڤʻ????? ?ƻ??֤??????ϰ???Ŭ?Ѥ????뤳?Ȥ??ޤ??? ?????ѥ桼?????????????ޤ??ϻ????Ӥ??????Ǥ??ޤ??? ?????ƥब securelevel >= 2 (init(8) ??) ?Ǽ¹Ԥ??????????ϡ? ???? 1 ?äΤ??????ʤ??뤫?٤餻?뤳?Ȥ????Ǥ??ޤ????? ???????¤??ݤ??????Τϡ????դΤ??륹???ѥ桼?????ե???????Ǥ?դ? ?????ॹ?????פ????ꤹ???Τ??ɻߤ??뤿???Ǥ??? ?????ƥ??????ϡ??????ƥब?????⡼?ɤˤ??äƤ? adjtime(2) ?????ƥॳ?????????Ѥ??????¤ʤ??˸?????Ĵ???Ǥ??ޤ??? ??????Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ???顼???Υ??顼?????ɤ? errno ?????ꤵ???ޤ?:
??Ϣ????date(1), adjtime(2), clock_gettime(2), ctime(3), timeradd(3), clocks(7), timed(8) ????
|