Skip to content

Commit da1d0c4

Browse files
committed
fix conversion issue
1 parent 673a67e commit da1d0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/neuronexusrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _parse_header(self):
230230
time_info = stringified_date_list[2].split(':')
231231
hour = int(time_info[0][-2:])
232232
minute = int(time_info[1])
233-
second = int(time_info[2])
233+
second = int(float(time_info[2]))
234234
microsecond = 1000 * 1000 * (float(time_info[2]) - second) # second -> micro is 1000 * 1000
235235

236236
rec_datetime = datetime.datetime(year, month, day, hour, minute, second, microsecond)

0 commit comments

Comments
 (0)