View Single Post
Quote:
Originally Posted by RobTrew View Post
Code:
date +%z | awk '{if (substr($1,1,1)!="+") {printf "+"} else {printf "-"} print substr($1,2,4)}'
Code:
-1300
Quote:
or perhaps more to the point, what does this return, and does it look right ?
Code:
date +%z
Code:
+1300
NZ daylight savings time is 13 hours ahead of GMT. I'm not sure which of the two is correct but they aren't matching up. What do you think?