Skip to content

Commit

Permalink
Fixup polaris/ocean/model/time.py
Browse files Browse the repository at this point in the history
Co-authored-by: Xylar Asay-Davis <xylarstorm@gmail.com>
  • Loading branch information
cbegeman and xylar authored Jan 17, 2024
1 parent 4b39823 commit abfe5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polaris/ocean/model/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ def get_time_interval_string(days=None, seconds=None):
sec_decimal = sec_part - np.floor(sec_part)
# https://stackoverflow.com/a/1384565/7728169
seconds_str = time.strftime('%H:%M:%S', time.gmtime(sec_part))
time_str = f'{day_part:04d}_{seconds_str}.{int(sec_decimal * 1e3)}'
time_str = f'{day_part:04d}_{seconds_str}.{int(sec_decimal * 1e3):03d}'
return time_str

0 comments on commit abfe5d4

Please sign in to comment.