Different times between Python and System
Josh
wheaties.box at gmail.com
Mon Apr 14 03:31:34 EDT 2008
Hmm... That didn't work out so well that time. I feel like an
idiot. Previously there has been an hour difference between the
system time and the time that python reports.
On Apr 14, 1:29 am, Josh <wheaties.... at gmail.com> wrote:
> Hi,
>
> Anyone know why python would not show the same time that my system
> shows?
>
> user at computer:~$ date
> Mon Apr 14 01:27:36 MDT 2008
> user at computer:~$ python
> Python 2.4.5 (#2, Mar 12 2008, 00:15:51)
> [GCC 4.2.3 (Debian 4.2.3-2)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.>>> import datetime
> >>> datetime.datetime.now()
>
> datetime.datetime(2008, 4, 14, 1, 27, 50, 472350)
>
> Thanks!
More information about the Python-list
mailing list