Jump to content

-] [I want the code of the painting to open for 20 hours] [-


MR.GNA7

Recommended Posts

  • 2 weeks later...

My simple example:

 

local days = getRealTime().timestamp + (20 * 3600) -- 1 hour = 3600 second, timestamp = unix time epoch as it started 01.01.1970
-- save in database (days)

-- check time:

-- read value days from db
if (getRealTime().timestamp < days) then --(/localtime < future time) return true; // active 20 hours :)
	return true
end

 

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...