Mercurial > hg > octave-lyh
comparison liboctave/oct-time.cc @ 7270:20b3ac39ee40
[project @ 2007-12-10 06:26:20 by jwe]
author | jwe |
---|---|
date | Mon, 10 Dec 2007 06:26:20 +0000 |
parents | 2eb392d058bb |
children | 8433bb7865bd |
comparison
equal
deleted
inserted
replaced
7269:3fade00a6ac7 | 7270:20b3ac39ee40 |
---|---|
302 tm_wday = t->tm_wday; | 302 tm_wday = t->tm_wday; |
303 tm_yday = t->tm_yday; | 303 tm_yday = t->tm_yday; |
304 tm_isdst = t->tm_isdst; | 304 tm_isdst = t->tm_isdst; |
305 | 305 |
306 #if defined (HAVE_STRUCT_TM_TM_ZONE) | 306 #if defined (HAVE_STRUCT_TM_TM_ZONE) |
307 tm_zone = t->tm_zone; | 307 if (t->tm_zone) |
308 tm_zone = t->tm_zone; | |
308 #elif defined (HAVE_TZNAME) | 309 #elif defined (HAVE_TZNAME) |
309 if (t->tm_isdst == 0 || t->tm_isdst == 1) | 310 if (t->tm_isdst == 0 || t->tm_isdst == 1) |
310 tm_zone = tzname[t->tm_isdst]; | 311 tm_zone = tzname[t->tm_isdst]; |
311 #endif | 312 #endif |
312 } | 313 } |