Jump to content

[HELP] getRealTime problem


..:D&G:..

Recommended Posts

So I use this getRealTime function to get the date and time when the player logs in, but it returns some weird date: 28-2-116 21:21:14

I don't think this is the time of the host, but I am not sure.

function getTheTime() 
    local timeDate = getRealTime() 
    local year = timeDate.year 
    local month = timeDate.month 
    local monthday = timeDate.monthday 
    local hour = timeDate.hour 
    local minute = timeDate.minute 
    local second = timeDate.second 
     
    return monthday.."-"..month.."-"..year.." "..hour..":"..minute..":"..second 
end  

Any ideas?

Thanks.

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