@@ -67,7 +67,7 @@ mod imp {
6767
6868/// A record specifying a time value in seconds and nanoseconds.
6969#[ deriving( Clone , Eq , TotalEq , Ord , TotalOrd , Encodable , Decodable , Show ) ]
70- pub struct Timespec { sec : i64 , nsec : i32 }
70+ pub struct Timespec { pub sec : i64 , pub nsec : i32 }
7171/*
7272 * Timespec assumes that pre-epoch Timespecs have negative sec and positive
7373 * nsec fields. Darwin's and Linux's struct timespec functions handle pre-
@@ -191,46 +191,46 @@ pub fn tzset() {
191191#[ deriving( Clone , Eq , Encodable , Decodable , Show ) ]
192192pub struct Tm {
193193 /// Seconds after the minute – [0, 60]
194- tm_sec : i32 ,
194+ pub tm_sec : i32 ,
195195
196196 /// Minutes after the hour – [0, 59]
197- tm_min : i32 ,
197+ pub tm_min : i32 ,
198198
199199 /// Hours after midnight – [0, 23]
200- tm_hour : i32 ,
200+ pub tm_hour : i32 ,
201201
202202 /// Day of the month – [1, 31]
203- tm_mday : i32 ,
203+ pub tm_mday : i32 ,
204204
205205 /// Months since January – [0, 11]
206- tm_mon : i32 ,
206+ pub tm_mon : i32 ,
207207
208208 /// Years since 1900
209- tm_year : i32 ,
209+ pub tm_year : i32 ,
210210
211211 /// Days since Sunday – [0, 6]. 0 = Sunday, 1 = Monday, …, 6 = Saturday.
212- tm_wday : i32 ,
212+ pub tm_wday : i32 ,
213213
214214 /// Days since January 1 – [0, 365]
215- tm_yday : i32 ,
215+ pub tm_yday : i32 ,
216216
217217 /// Daylight Saving Time flag.
218218 ///
219219 /// This value is positive if Daylight Saving Time is in effect, zero if Daylight Saving Time
220220 /// is not in effect, and negative if this information is not available.
221- tm_isdst : i32 ,
221+ pub tm_isdst : i32 ,
222222
223223 /// Identifies the time zone that was used to compute this broken-down time value, including any
224224 /// adjustment for Daylight Saving Time. This is the number of seconds east of UTC. For example,
225225 /// for U.S. Pacific Daylight Time, the value is -7*60*60 = -25200.
226- tm_gmtoff : i32 ,
226+ pub tm_gmtoff : i32 ,
227227
228228 /// Abbreviated name for the time zone that was used to compute this broken-down time value.
229229 /// For example, U.S. Pacific Daylight Time is "PDT".
230- tm_zone : ~str ,
230+ pub tm_zone : ~str ,
231231
232232 /// Nanoseconds after the second – [0, 10<sup>9</sup> - 1]
233- tm_nsec : i32 ,
233+ pub tm_nsec : i32 ,
234234}
235235
236236pub fn empty_tm ( ) -> Tm {
0 commit comments