Jump to content

Get time


jafar

Recommended Posts

Posted
  
    local realTime = getRealTime(  ) 
    local date = {(realTime.year)+1900,(realTime.month)+1,realTime.monthday} 
  

I added 1900 to the year, because getRealTime () will return 114

I added 1 to the month, simply, month day stays the same.

Date[1] is the year

Date[2] is the month

Date[3] is the day

Posted
I want the time of the vps server no of the player or my computer.

"This function gets the server or client (if used client sided it returns time as set on client's computer) real time and returns it in a table"

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...