aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/time/instant.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/time/instant.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/time/instant.lux b/stdlib/source/lux/time/instant.lux
index 823db0687..707dac89a 100644
--- a/stdlib/source/lux/time/instant.lux
+++ b/stdlib/source/lux/time/instant.lux
@@ -134,10 +134,10 @@
_ (<t>.this ..time_suffix)]
(wrap (|> (if (i.< +0 days)
(|> duration.day
- (duration.scale_up (.nat (i.* -1 days)))
+ (duration.up (.nat (i.* -1 days)))
duration.inverse)
- (duration.scale_up (.nat days) duration.day))
- (duration.merge (duration.scale_up time duration.milli_second))
+ (duration.up (.nat days) duration.day))
+ (duration.merge (duration.up time duration.milli_second))
..absolute))))
(structure: #export codec