diff options
Diffstat (limited to 'time.odin')
| -rw-r--r-- | time.odin | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -769,6 +769,14 @@ hourcount :: proc(block: Timeblock) -> f32 { f32(hours) + f32(days) * 24) } +minutecount :: proc(block: Timeblock) -> int { + using block + delta: Delta = diff(end, start) + using delta + return (minutes) + + (hours*60) + + (days*24*60) +} daycount :: proc(delta: Delta) -> f32 { using delta |