planetarypy / pvl

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

Improved time encoding and decoding #82

Closed rbeyer closed 3 years ago

rbeyer commented 3 years ago

Fixed so that PDS3 handling will not allow a time string with a timezone offset, and will not deal with time precisions better than miliseconds.

Description

The ODL decoder will now return either "naive" or "aware" time and datetime objects, as appropriate.

Fixed so that PDS3 handling will not allow a time string with a timezone offset, and will properly raise exceptions if asked to deal with time precisions better than miliseconds (although ODL handling still allows microsecond precision).

Related Issue

This would close #80.

How Has This Been Tested?

Types of changes

Checklist:

Licensing:

This project is released under the LICENSE.