version 1.8, 2010/07/23 21:46:05 |
version 1.9, 2010/07/29 18:52:45 |
|
|
Hours = 0; |
Hours = 0; |
return ((Hours + 12) * 60L + Minutes) * 60L + Seconds; |
return ((Hours + 12) * 60L + Minutes) * 60L + Seconds; |
default: |
default: |
abort(); |
return (-1); |
} |
} |
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |
|
|
|
|
if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || |
if (time(&nowtime) == -1 || !gmtime_r(&nowtime, &gmt) || |
!localtime_r(&nowtime, &tm)) |
!localtime_r(&nowtime, &tm)) |
errx(1, "date_parse failed"); |
return -1; |
|
|
tz = difftm(&gmt, &tm) / 60; |
tz = difftm(&gmt, &tm) / 60; |
|
|