Hi,
I’m trying to set local notifications at specific times but I can’t find a way to pass in the desired time. Say for example I want to set the notification for 10pm on the 17th of January 2015 how do I create that variable?
[lua]
local futureUtcTime = ???
local secondsFromNow = os.difftime( os.time(), os.time( futureUtcTime ) )
local notificationID = system.scheduleNotification( secondsFromNow, options )
[/lua]
Can I create a table like this:
[lua]
local futureUtcTime = {
hour = 22,
minute = 0,
date = 17,
month = January,
year = 2015
}
[/lua]