Thread Tools Display Modes
03-04-06, 06:31 PM   #1
kestralcoppernickle
A Defias Bandit
Join Date: Mar 2006
Posts: 2
Date comparison, datediff not supported by wow lua?

Hello i'm working on my first addon and part of it requires me to compare two dates to see how long in the past a date is ("2 days ago" for example).
The game only monitors gametime so I am comparing systemdates.

But it seems that WoW LUA doesn't incorporate LUA's datediff function, as it's not recognised in my code.

Is there anyone who's made a date difference function himself that would be willing to share it? I have been trying all evening but i've not bene able to write one myself, as i'm unable to figure out the logic behind the comparison.

Thanks
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Date comparison, datediff not supported by wow lua?


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