Message123442
| Author |
ericpruitt |
| Recipients |
ericpruitt |
| Date |
2010年12月05日.23:57:22 |
| SpamBayes Score |
7.1595277e-06 |
| Marked as misclassified |
No |
| Message-id |
<1291593444.74.0.0494991149013.issue10634@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If the current time zone changes on Windows, time.localtime will continue to return results that reflect the time zone the system used when the module was imported. My current work around is to use GetLocalTime from kernel32 with ctypes. Windows does not have a tzset() equivalent as it does in Linux, but it seems like modifying time.localtime to use GetLocalTime on Windows systems could make up for this shortcoming. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年12月05日 23:57:24 | ericpruitt | set | recipients:
+ ericpruitt |
| 2010年12月05日 23:57:24 | ericpruitt | set | messageid: <1291593444.74.0.0494991149013.issue10634@psf.upfronthosting.co.za> |
| 2010年12月05日 23:57:22 | ericpruitt | link | issue10634 messages |
| 2010年12月05日 23:57:22 | ericpruitt | create |
|