Skip to content

Commit

Permalink
Fix Time
Browse files Browse the repository at this point in the history
  • Loading branch information
minoki committed Jul 24, 2023
1 parent 3ecbde0 commit 951cd1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lunarml/ml/basis/lua/time.sml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fun toLuaTime (x : int) : Lua.value
val min' = x div 60
val min = min' mod 60
val hour' = min' div 60
val hour = hour' mod 60
val hour = hour' mod 24
val day' = hour' div 24
val t = Lua.newTable ()
in Lua.setField (t, "year", Lua.fromInt 1970)
Expand Down
2 changes: 1 addition & 1 deletion lib/lunarml/ml/basis/luajit/time.sml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fun toLuaTime (x : Int54.int) : Lua.value
val min' = x div 60
val min = min' mod 60
val hour' = min' div 60
val hour = hour' mod 60
val hour = hour' mod 24
val day' = hour' div 24
val t = Lua.newTable ()
in Lua.setField (t, "year", Lua.fromInt 1970)
Expand Down

0 comments on commit 951cd1c

Please sign in to comment.