diff options
| author | San Jacobs | 2025-11-10 19:47:31 +0100 |
|---|---|---|
| committer | San Jacobs | 2025-11-10 19:47:31 +0100 |
| commit | 3fd7d818b53fe80fb521fd24c024f27f38fcc7bd (patch) | |
| tree | 7f534c6f0ebb9aee336718d0bb0b63da01c578f0 /time.odin | |
| parent | 0f0521166eb6f8653ed37fd1e6e695fc17200db8 (diff) | |
| download | statics-3fd7d818b53fe80fb521fd24c024f27f38fcc7bd.tar.gz statics-3fd7d818b53fe80fb521fd24c024f27f38fcc7bd.tar.bz2 statics-3fd7d818b53fe80fb521fd24c024f27f38fcc7bd.zip | |
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 |