Jump to content

Get time


Recommended Posts

    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

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