Skip to content

Commit

Permalink
Attempt to debug cftime issues on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 21, 2019
1 parent ab28044 commit c533474
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions holoviews/core/util.py
Expand Up @@ -1919,10 +1919,11 @@ def cftime_to_timestamp(date, time_unit='us'):
date: cftime datetime object (or array)
Returns:
Milliseconds since 1970-01-01 00:00:00
time_unit since 1970-01-01 00:00:00
"""
import cftime
utime = cftime.utime('microseconds since 1970-01-01')
print(date, utime.date2num(date))
utime = cftime.utime('microseconds since 1970-01-01 00:00:00')
if time_unit == 'us':
tscale = 1
else:
Expand Down

0 comments on commit c533474

Please sign in to comment.