forked from realpython/materials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunits.toml
More file actions
29 lines (24 loc) · 667 Bytes
/
Copy pathunits.toml
File metadata and controls
29 lines (24 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# units.toml
[second]
label = { singular = "second", plural = "seconds" }
aliases = ["s", "sec", "seconds"]
[minute]
label = { singular = "minute", plural = "minutes" }
aliases = ["min", "minutes"]
multiplier = 60
to_unit = "second"
[hour]
label = { singular = "hour", plural = "hours" }
aliases = ["h", "hr", "hours"]
multiplier = 60
to_unit = "minute"
[day]
label = { singular = "day", plural = "days" }
aliases = ["d", "days"]
multiplier = 24
to_unit = "hour"
[year]
label = { singular = "year", plural = "years" }
aliases = ["y", "yr", "years", "julian_year", "julian years"]
multiplier = 365.25
to_unit = "day"