Home > other >  Consult the lua a matter of time
Consult the lua a matter of time

Time:11-16

Now is 12 November 15, 2020, 11 minutes 5 seconds

Start recording here


Then on November 15, 2020, 12 p.m 1 second or November 17, 2002, 1 p.m 1 second

I how to write the current time is 30 minutes more than recording time

Now take to

First of all, a global variable recording time=0
If recording time==0 then
Local records time=OS. Time ()) - give timestamp
End

If OS. Time () - recording time & gt;=30 then if the current time minus the records of more than 30 of 30 seconds is mean

End

Want to do you this spelled right, to say the least, I if the current time (date) (month) (year) are!=recording time (date) (month) (year) it is the same thing?

  • Related