Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local formattedTime = data.Timestamp do --== m/d min:sec
  2. --local secs = formattedTime%60
  3. local mins = formattedTime/60%60
  4. local hours = formattedTime/3600%24
  5. local days = math.floor(formattedTime/86400%30.4368499+.5) --== oh my god it took so long to find these, roblox please add os.date
  6. local months = math.floor(formattedTime/2629743.83%12+.5)
  7.  
  8. formattedTime = string.format("%.2d/%.2d %.2d:%.2d",months,days,hours,mins)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement