Open Chobbes opened 6 years ago
I think the following format is reasonable:
[number of minutes][space]["min"]
Since,
min
can be enforced as seconds are utterly irrelevant while cooking and if the recipe takes longer than 60min, we can still have the code convert it visually to, say, 1h 30min
or 1.5h
.min
is the SI defined shorthand for a minute, as m
is already taken for the meter, and mins
implies a plural, which is never used in SI units.If we agree on this format, we can write a org-util
to trim, expand and convert the typical variations of how times are written to this single format.
Currently org-chef just spews whatever into the time fields of recipe (prep-time, cook-time, ready-in). So it could end up being anything...
30m, 30mins, 30min, 30 mins, etc.
org-chef should have a consistent format for times.