Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
h = Duration.h
hrs = h
hours = h
d = Duration.d
days = d
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
h = Duration.h
hrs = h
hours = h
d = Duration.d
('secs2', 1, Duration.s),
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
h = Duration.h
hrs = h
hours = h
('secs1', 1, Duration.s),
('days2', 24*60*60, Duration.day),
('hours2', 60*60, Duration.hour),
('minutes2', 60, Duration.minute),
('secs2', 1, Duration.s),
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
h = Duration.h
hrs = h
hours = h
d = Duration.d
days = d
# | | corresponding `Duration` unit
# | | |
('days1', 24*60*60, Duration.day),
('hours1', 60*60, Duration.hour),
('minutes1', 60, Duration.minute),
('secs1', 1, Duration.s),
('days2', 24*60*60, Duration.day),
('hours2', 60*60, Duration.hour),
('minutes2', 60, Duration.minute),
('secs2', 1, Duration.s),
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
('days2', 24*60*60, Duration.day),
('hours2', 60*60, Duration.hour),
('minutes2', 60, Duration.minute),
('secs2', 1, Duration.s),
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
h = Duration.h
('hours2', 60*60, Duration.hour),
('minutes2', 60, Duration.minute),
('secs2', 1, Duration.s),
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m
h = Duration.h
hrs = h
('minutes1', 60, Duration.minute),
('secs1', 1, Duration.s),
('days2', 24*60*60, Duration.day),
('hours2', 60*60, Duration.hour),
('minutes2', 60, Duration.minute),
('secs2', 1, Duration.s),
]
## aliases for common units
B = Memory.B
byte = B
bytes = B
kB = Memory.kB
MB = Memory.MB
GB = Memory.GB
TB = Memory.TB
KiB = Memory.KiB
MiB = Memory.MiB
GiB = Memory.GiB
TiB = Memory.TiB
s = Duration.s
secs = s
seconds = s
m = Duration.m
mins = m
minutes = m