skypop

CC timeIRL

Aug 24th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- timeIRL
  2. -- by SukaiPoppuGo
  3. --
  4. -- Retourne l'heure locale (IRL)
  5.  
  6. -- function timeIRL
  7. -- returns
  8. --    number    hours, float value
  9. --    number    hours, int value
  10. --    number    minutes, int value
  11. --    number    seconds, int value
  12. function timeIRL()
  13.     local h = os.time("local")
  14.     return h,
  15.         math.floor(h),
  16.         math.floor(h%1*60),
  17.         math.floor(h*60%1*60)
  18. end
Add Comment
Please, Sign In to add comment