@masphei, while Lua is amazing with so many things like memory management, arrays, etc it is a bit of a let down while dealing with dates.
There are no functions like addDate or dateDiff, however you can convert a date (dd, mm, yy) to a number (Gregorian calendar) and then add the days/months accordingly and then convert it back to a date from that number.
There are a couple of functions and classes written in Lua for use.
Comments
see
http://docs.giderosmobile.com/reference/lua/os/date#date
Fragmenter - animated loop machine and IKONOMIKON - the memory game
There are no functions like addDate or dateDiff, however you can convert a date (dd, mm, yy) to a number (Gregorian calendar) and then add the days/months accordingly and then convert it back to a date from that number.
There are a couple of functions and classes written in Lua for use.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps