Homec4science

dateutils: consolidate localtime_to_utc

Authored by Jan Aage Lavik <jan.age.lavik@cern.ch> on Feb 22 2013, 16:47.

Description

dateutils: consolidate localtime_to_utc

  • Moves two "equivalent" localtime to/from utc functions from BibFormat and oairepository into dateutils.
  • These functions also now accepts dates before 1900.
  • Adds new tests for these functions.
  • For Python 2.4 compatibility - adds datetime.strptime.

Co-authored-by: Alessio Deiana <alessio.deiana@cern.ch>

Details

Committed
Samuele Kaplun <samuele.kaplun@cern.ch>Dec 18 2013, 16:21
Parents
R3600:1f3197234ba3: WebSearch: add record edit link in brief
Branches
Unknown
Tags
Unknown

Event Timeline

Samuele Kaplun <samuele.kaplun@cern.ch> committed R3600:5007c3a47344: dateutils: consolidate localtime_to_utc (authored by Jan Aage Lavik <jan.age.lavik@cern.ch>).Dec 18 2013, 16:21