Skip to content

Commit

Permalink
Update io.py
Browse files Browse the repository at this point in the history
datetime format for metadata
  • Loading branch information
claaslendt committed Oct 23, 2024
1 parent 79b8384 commit 487c9b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paat/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ def _create_time_array(time_data, hz=100):


def _format_time(tstamp):
tstamp = int(tstamp) // 10000000 + np.datetime64('0001-01-01T00:00:00').astype(int)
return int(tstamp) * 1000
dt = np.datetime64('0001-01-01T00:00:00') + np.timedelta64(int(tstamp) // 10000000, 's')
return str(dt)


def _format_meta_data(meta):
Expand Down

0 comments on commit 487c9b8

Please sign in to comment.