News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Date format

Started by drChaos, March 04, 2007, 03:56:58 PM

Previous topic - Next topic

drChaos

I want to print current date in format MM/DD/YYYY.
I have tried to write embed script.
local curDate;
date(time(),curDate);
print(curDate.month+"//"+curDate.day+"//"+curDate.year);


But it gives me an error : "The index date does not exist."
I think that standard Sqirrel lib "system" didn't link and I guess why :).
But how I can take date or how can I change the date output format?

mandrav

QuoteI think that standard Sqirrel lib "system" didn't link

That's right, we haven't enabled squirrel's std lib yet...
Be patient!
This bug will be fixed soon...

drChaos

Quote from: mandrav on March 04, 2007, 05:36:45 PM
QuoteI think that standard Sqirrel lib "system" didn't link

That's right, we haven't enabled squirrel's std lib yet...

And what should I do? I havn't any funtion that can give me date/time in any format.