Time issues

自闭症网瘾萝莉.ら 提交于 2019-12-01 00:57:47

Is the time or time zone set differently on either of your PCs?

http://docs.python.org/library/time.html#time.gmtime

The link above suggests using time.gmtime() to get time since the epoch in UTC, instead of local time.

This is almost certainly due to different time zone configurations between the two environments.

Examine time.tzname, time.timezone, time.altzone, time.daylight

I realise this is an old question, but I was looking at some issues in the same area and thought I would share:

From 1968-1972 The UK kept BST throughout the year

This means there were no DST changes for Europe/London in those years - so your Linux results are accurate there. There is no doubt a difference between 'GMT' and 'Europe/London', since GMT applies to all countries in that timezone not jus the UK.

See, for example: http://wwp.greenwichmeantime.co.uk/daylight-saving-time/history-william-willetts.htm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!