Jump to content

Bug to getRealTime?


Vadlmok

Recommended Posts

Posted (edited)

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
  • Scripting Moderators
Posted (edited)

+1900 since the year of computer starts from 1900

Edited by thisdp
  • Like 1
Posted
On 25/02/2019 at 23:38, thisdp said:

+1900 since the year of computer starts from 1900

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

year years since 1900

 

ignore this:

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

  • Scripting Moderators
Posted (edited)
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
  • Scripting Moderators
Posted
4 minutes ago, 669344682 said:

Your reputation is the highest level in Chinese.Love you bro  ?!!!

i am not a gay

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