Jump to content

Bug to getRealTime?


Vadlmok

Recommended Posts

Hi. 
A bug with the feature? Year 119 shows
 

local time = getRealTime()
    local hours = time.hour
    local minutes = time.minute
    local seconds = time.second

    local monthday = time.monthday
    local month = time.month
    local year = time.year

    local formattedTime = string.format("%04d-%02d-%02d %02d:%02d:%02d", year, month + 1, monthday, hours, minutes, seconds)
    outputChatBox(formattedTime, thePlayer,255,0,0,true)

Use serverside

Edited by Vadlmok
Link to comment
  • Scripting Moderators
6 hours ago, 669344682 said:

It's true. Please pay more attention to following information underneath the wiki page.

year years since 1900

 

ignore this:

@thisdp 灯泡活跃在各大论坛?

what? wait a minute who are you?

ah i know who are u now.

Edited by thisdp
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...