Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. fun hms (x:int) =
  2. let
  3. val a = x div 3600
  4. val b = x mod 3600 div 60
  5. val c = x mod 3600 mod 60
  6. in
  7. (a,b,c)
  8. end ;
  9. Beispiel:
  10.  
  11. hms 3666
  12. val it = (1,1,6): int*int*int
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement