c++ - Timezone issue: `$ date -R` says `+0300`, but `timezone` says `-7200` -


executing $ date -r gives me +0300 but when print timezone global variable timezone, shows me -7200.

ideas what's happeninig?

it looks dst not included , timezone sign different, why?

timezone not know d(aylight)s(aving)t(ime) defintion. time zones constant sections on earth on year (update: @ least naming constant during days sandford fleming invented them). referring offset greenwich common, not make sense add temporary dst offset.


the different sign dues different view point , direction of date/time , timezone.

the offset given date referring from to greenwich.

the timezone measured to from greenwich .


regarding c system calls: gettimeofday() provides dst info. (update: in not case glibc implementation)


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -