Get current date/time (aka CurrentLocalDateText not found)?

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Get current date/time (aka CurrentLocalDateText not found)?

Post by magnetik »

Hi,

According to konte's documentation, there is a function 'CurrentLocalDateText' which can be used to retreive the current date.

I'm trying it in a manialink, and I get the error :

Code: Select all

ERROR: [435, 43] Function CurrentLocalDateText not found
Has this function been renamed ?

Thanks
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Get current date/time (aka CurrentLocalDateText not foun

Post by w1lla »

well it works for me:

Code: Select all

echo'<label id="myLabel5"  sizen="40 3" posn="0 -42 0"  halign="center" text=""/>';
(Page.GetFirstChild("myLabel5") as CGameManialinkLabel).SetText(CurrentLocalDateText^"");
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
magnetik
Posts: 1673
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Get current date/time (aka CurrentLocalDateText not foun

Post by magnetik »

okay, I tried it as a function at first, then as a variable but the game kept the old file in cache...

Yep it's working.

Thanks.
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 0 guests