@@ -67,7 +67,7 @@ mod imp {
67
67
68
68
/// A record specifying a time value in seconds and nanoseconds.
69
69
#[ 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 }
71
71
/*
72
72
* Timespec assumes that pre-epoch Timespecs have negative sec and positive
73
73
* nsec fields. Darwin's and Linux's struct timespec functions handle pre-
@@ -191,46 +191,46 @@ pub fn tzset() {
191
191
#[ deriving( Clone , Eq , Encodable , Decodable , Show ) ]
192
192
pub struct Tm {
193
193
/// Seconds after the minute – [0, 60]
194
- tm_sec : i32 ,
194
+ pub tm_sec : i32 ,
195
195
196
196
/// Minutes after the hour – [0, 59]
197
- tm_min : i32 ,
197
+ pub tm_min : i32 ,
198
198
199
199
/// Hours after midnight – [0, 23]
200
- tm_hour : i32 ,
200
+ pub tm_hour : i32 ,
201
201
202
202
/// Day of the month – [1, 31]
203
- tm_mday : i32 ,
203
+ pub tm_mday : i32 ,
204
204
205
205
/// Months since January – [0, 11]
206
- tm_mon : i32 ,
206
+ pub tm_mon : i32 ,
207
207
208
208
/// Years since 1900
209
- tm_year : i32 ,
209
+ pub tm_year : i32 ,
210
210
211
211
/// Days since Sunday – [0, 6]. 0 = Sunday, 1 = Monday, …, 6 = Saturday.
212
- tm_wday : i32 ,
212
+ pub tm_wday : i32 ,
213
213
214
214
/// Days since January 1 – [0, 365]
215
- tm_yday : i32 ,
215
+ pub tm_yday : i32 ,
216
216
217
217
/// Daylight Saving Time flag.
218
218
///
219
219
/// This value is positive if Daylight Saving Time is in effect, zero if Daylight Saving Time
220
220
/// is not in effect, and negative if this information is not available.
221
- tm_isdst : i32 ,
221
+ pub tm_isdst : i32 ,
222
222
223
223
/// Identifies the time zone that was used to compute this broken-down time value, including any
224
224
/// adjustment for Daylight Saving Time. This is the number of seconds east of UTC. For example,
225
225
/// for U.S. Pacific Daylight Time, the value is -7*60*60 = -25200.
226
- tm_gmtoff : i32 ,
226
+ pub tm_gmtoff : i32 ,
227
227
228
228
/// Abbreviated name for the time zone that was used to compute this broken-down time value.
229
229
/// For example, U.S. Pacific Daylight Time is "PDT".
230
- tm_zone : ~str ,
230
+ pub tm_zone : ~str ,
231
231
232
232
/// Nanoseconds after the second – [0, 10<sup>9</sup> - 1]
233
- tm_nsec : i32 ,
233
+ pub tm_nsec : i32 ,
234
234
}
235
235
236
236
pub fn empty_tm ( ) -> Tm {
0 commit comments