planetarypy / pvl

Python implementation of PVL (Parameter Value Language)
BSD 3-Clause "New" or "Revised" License
19 stars 19 forks source link

datetime aware refinement #64

Closed rbeyer closed 4 years ago

rbeyer commented 4 years ago

Description

Enforced that all datetime.time and datetime.datetime objects returned should be timezone "aware." This breaks 0.x functionality where some were and some weren't.

Related Issue

Closes #57

Motivation and Context

See detailed discussion in #57

How Has This Been Tested?

Types of changes

Checklist:

Licensing:

This project is released under the LICENSE.

rbeyer commented 4 years ago

Hmm, looks like I'm having errors in Travis. I'll troubleshoot this.

michaelaye commented 4 years ago

I have indeed seen seconds of 60.x in a broken translation between spacecraft and UTC time. and datetime was totally fine with it, it's bizarre.