[New-bugs-announce] [issue7662] time.utcoffset(dst=true)

anatoly techtonik report at bugs.python.org
Sat Jan 9 18:15:41 CET 2010


New submission from anatoly techtonik <techtonik at gmail.com>:

The proposal to add the function that will allow to get current UTC offset. Do we need a PEP for this one?

def time.utcoffset():
  """Return current UTC offset in seconds"""
  return -(time.altzone if time.daylight else time.timezone)

----------
components: Library (Lib)
messages: 97463
nosy: techtonik
severity: normal
status: open
title: time.utcoffset(dst=true)
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7662>
_______________________________________


More information about the New-bugs-announce mailing list