[Tutor] can time.time() be reversed so as to get date?

Shashwat Anand anand.shashwat at gmail.com
Fri Nov 6 22:59:30 CET 2009


Off-Topic :

http://en.wikipedia.org/wiki/Time_zone
7 / 33 time zones are not the multiple of hours.

On Sat, Nov 7, 2009 at 3:25 AM, Luke Paireepinart <rabidpoobear at gmail.com>wrote:

>
>
> On Fri, Nov 6, 2009 at 11:37 AM, Shashwat Anand <anand.shashwat at gmail.com>wrote:
>
>> Problem resolved.
>>
>> time.ctime(no_of_seconds - 330*60) does it.
>> 330*60, because my time-zone is GMT+5:30 and time.ctime() gives the local
>> time while I wanted the GMT.
>>
>
> Where do they use time zones that aren't a multiple of an hour?  That must
> be incredibly confusing.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091107/bb61102a/attachment.htm>


More information about the Tutor mailing list