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

Luke Paireepinart rabidpoobear at gmail.com
Fri Nov 6 22:55:25 CET 2009


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/20091106/797b18f2/attachment.htm>


More information about the Tutor mailing list