Page 1 of 1

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

Posted: 21 Mar 2012, 11:23
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

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

Posted: 21 Mar 2012, 11:27
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^"");

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

Posted: 21 Mar 2012, 11:31
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.