Edgewall Software

Changes between Initial Version and Version 1 of Ticket #12617, comment 5


Ignore:
Timestamp:
Mar 7, 2017, 6:56:17 PM (7 years ago)
Author:
Ryan J Ollos

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12617, comment 5

    initial v1  
    44$ TZ=Europe/Dublin venv/trac/1.0.13/bin/python
    55>>> from datetime import datetime
    6 >>> from trac.util.datefmt import to_datetime, to_utimestamp
     6>>> from trac.util.datefmt import localtz, to_datetime, to_utimestamp
    77>>> localtz.utcoffset(datetime(2017, 1, 2))
    88datetime.timedelta(0)