Jump to content
  • Create New...
  • 0

os.date("%M") - 50



  • Moon
local time = os.date("%M")
local event_time = time - 60
So actually if i use this time - number and number is bigger than os.date("%M") i'm getting a crash and a negative result
os.date("%M") = 40
number = 50
I'm getting result -10 instead of 10
Any solution ? math.floor or something ?
Link to comment
Share on other sites

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.