Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29046

datetime

From Max <readmax@hushmail.com>
Subject datetime
Date 2012-09-13 15:19 +0000
Newsgroups comp.lang.python
Message-ID <mailman.614.1347550804.27098.python-list@python.org> (permalink)

Show all headers | View raw


How do I set the time in Python?

Also, is there any *direct* way to shift it?

Say, it's 09:00 now and Python makes it 11:30 *without* me having specified
"11:30" but only given Python the 2h30m interval.

Note that any "indirect" methods may need complicated ways to keep
track of the milliseconds lost while running them. It even took around one
second in some virtual machine guest systems. So I'm hoping Python happens to
have the magic needed to do the job for me.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

datetime Max <readmax@hushmail.com> - 2012-09-13 15:19 +0000
  Re: datetime Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-09-14 03:35 +0000
    Re: datetime Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-14 00:50 -0400
    Re: datetime Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-14 02:37 -0400

csiph-web