1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
.\" @(#)tzfile.5 7.11
.\" This file is in the public domain, so clarified as of
.\" 1996-06-05 by Arthur David Olson <arthur_david_olson@nih.gov>.
.\"
.\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
.\" Translated Tue Sep 14 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.\"WORD: transition time ܻ
.\"WORD: local time types ַ
.\"WORD: time zone abbreviatio strint ॾάʸ
.\"
.TH TZFILE 5 1996-06-05 "" "Linux Programmer's Manual"
.SH ̾
tzfile \- ॾξ
.SH
.B
#include <tzfile.h>
.SH
.BR tzset (3)
ˤäѤ륿ॾΥեϡ
̤Τ magic ʸ "TZif" ǻϤޤꡢ
Τ 16 ХȤͽΰ褬³
.I long
4 ХȤͤ 6 ³
ͤϡɸץХȥ (̥ХȤ˽)
ǵҤ롣ͤϡ˰ʲΤ褦ʤΤǤ롣
.TP
.I tzh_ttisgmtcnt
ե˵ҤƤ UTC/local (indicator) θĿ
.TP
.I tzh_ttisstdcnt
ե˵ҤƤ standard/wall θĿ
.TP
.I tzh_leapcnt
ե˵ҤƤ뱼åǡθĿ
.TP
.I tzh_timecnt
ե˵ҤƤܻ (transition time)ץǡθĿ
.TP
.I tzh_typecnt
ե˵ҤƤַ֥ (local time types)ץǡθĿ
(0 ǤäƤϤʤ)
.TP
.I tzh_charcnt
ե˵ҤƤ֥ॾάʸ (time zone
abbreviation string)פθĿ
.PP
嵭Υإå³
.I tzh_timecnt
Ȥ 4 ХȤ
.I long
ͤ (ʣ) ³ݴɤƤ롣
ͤϡɸץХȥǵҤƤ롣
줾ܻ
.RB ( time (2)
֤) ȤѤ졢
줾ˤƥ֤η롼뤬ѹ롣
Τ
.I tzh_timecnt
ǡ
.I "unsigned char"
1 ХȤͤǤ (ʣ³Ȥ⤢)
ͤϡեǵҤƤۤʤäפΡ֥֡פ
줾Ʊ褦˥ǥå줿ܻ֤Τɤ˴ϢŤ
뤫
ͤ
.I ttinifo
¤ΤФ륤ǥåȤƤ롣
.I ttinfo
¤ΤϥեǼΰ֤֤롣
ι¤ΤϰʲΤ褦Ƥ:
.in +4n
.sp
.nf
struct ttinfo {
long tt_gmtoff;
int tt_isdst;
unsigned int tt_abbrind;
};
.in
.fi
.sp
줾ι¤Τϡ 4 ХȤ \fIlong\fP \fItt_gmtoff\fP
1 ХȤ \fItt_isdst\fP,
1 ХȤ \fItt_abbrind\fP 鹽롣
.\"NAKANO int ʤΤ 4 ХȤʤΡ
줾ι¤Τˤơ
.I tt_gmtoff
UTC ˲ä٤ÿͿ
.I tt_isdst
.I tm_isdst
.BR localtime (3)
˥åȤ٤ɤ
.I tt_abbrind
ϥե \fIttinfo\fP ¤ () ΤȤ֤
ॾάʸФ륤ǥåǤ롣
.PP
ˤ 4 ХͤΥڥǤ
.I tzh_leapcnt
(ʣ) ³ɸХȥǵҤ롣
줾Υڥκǽͤϱäε (
.IR time (2)
֤) ͿܤͤϤλ˲ä٤ÿ
ÿͿ롣ΥڥϻθŤ˵Ҥ롣
.PP
ˤ
.I tzh_ttisstdcnt
֤롣 standard/wall ǡ줾 1 ХȤ
ͤݴɤ롣ϥ֤Υפ˴ϢŤ줿ܻ֤
ɸ (standard time) ɻ (wall clock time)
ɤǻꤵƤ뤫ޤͤϡ
POSIX ΥॾĶѿȤ
ॾե뤬ȤȤˤѤ롣
.PP
Ǹ
.I tzh_ttisgmtcnt
֤롣 UTC/local ǡ줾 1 ХȤ
ͤݴɤ롣ϥ֤Υפ˴ϢŤ줿ܻ֤
UTC ȥΤɤǻꤵƤ뤫ޤͤϡ
POSIX ΥॾĶѿȤ
ॾե뤬ȤȤˤѤ롣
.PP
.I localtime
ϡ
.I tzh_timeout
0 Ǥ뤫 time ե˵ϿƤǽܻ
⾮ˤϡ
ե˺ǽ˸ɸ
.I ttinfo
¤ΤȤ (ޤɸι¤Τʤϡñ˺ǽ
.I ttinfo
¤ΤȤ)
|