| 251 | | """Time zone offset in seconds (i.e. '-43200' to '43200'). The offset |
|---|
| 252 | | for timezones west of UTC is always negative, and for those east of UTC |
|---|
| 253 | | is always positive.""" |
|---|
| 254 | | return self.timezone.utcoffset(self.data).seconds |
|---|
| | 251 | """ |
|---|
| | 252 | Time zone offset in seconds (i.e. '-43200' to '43200'). The offset for |
|---|
| | 253 | timezones west of UTC is always negative, and for those east of UTC is |
|---|
| | 254 | always positive. |
|---|
| | 255 | """ |
|---|
| | 256 | offset = self.timezone.utcoffset(self.data) |
|---|
| | 257 | # Only days can be negative, so negative offsets have days=-1 and |
|---|
| | 258 | # seconds positive. Positive offsets have days=0 |
|---|
| | 259 | return offset.days * 86400 + offset.seconds |
|---|