lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



hi again guys,

i cant find information regarding the comparision of dates and times.

myDate = "05/21/2009";

if ( os.date()> myDate) then
  print "myDate is a previuos date";

if ( os.date() = myDate) then
  print "myDate is today";

if ( os.date() < myDate) then
  print "myDate is in the future";




is this correct ?
will this work to all locales ?
what about comparing times ? (i mean, if a time is between two values)

thanks one more time



Windows Live™: Keep your life in sync. Check it out!