Skip to content

Commit

Permalink
Merge pull request #7 from AllenInstitute/feature/add-time-units
Browse files Browse the repository at this point in the history
add time conversion units
  • Loading branch information
rpmcginty authored Jul 30, 2024
2 parents fecb222 + d42e8f1 commit 71a36de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/aibs_informatics_core/utils/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
BYTES_PER_KIBIBYTE = 1 << (1 * BYTE_UNIT_STEP)
BYTES_PER_MEBIBYTE = 1 << (2 * BYTE_UNIT_STEP)
BYTES_PER_GIBIBYTE = 1 << (3 * BYTE_UNIT_STEP)


SECONDS_PER_MINUTE = 60
SECONDS_PER_HOUR = 60 * SECONDS_PER_MINUTE
SECONDS_PER_DAY = 24 * SECONDS_PER_HOUR

0 comments on commit 71a36de

Please sign in to comment.