Thread Tools Display Modes
08-06-06, 06:58 PM   #1
Salieri
A Defias Bandit
Join Date: Aug 2006
Posts: 2
Question about the os.date(): and/or date(); function

Hello all
After some time reading the forums here and learn about xml/lua i'm trying to make some addons myself.
The xml part of it is getting better but lua is still giving me lot's of troubles^^.


I now need to get the date function working.
I'm following the information on http://www.wowwiki.com/API_date
But can't get it to work

If i understand it correct it should be working like this: date(%m);
and that gives then the month??

but if i use it for the varriable:
Code:

Code:
NAME_MONTH = "date(%m)";
The value of the variable is then just date(%m),
It doesn't change in the current month.
I know there's also os.date(); but i have the same problem there as date();

Could someone help me how to give the variable NAME_MONTH the value of the month?
Or an example would be very fine so that i can experiment with it.


Greetings Salieri
  Reply With Quote
08-07-06, 08:05 AM   #2
Salieri
A Defias Bandit
Join Date: Aug 2006
Posts: 2
nvm it is working now

~Salieri
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Question about the os.date(): and/or date(); function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off