Hi,
I'm not sure what you mean by normal time.
Automagic internally stores a date+time as the number of milliseconds since 1970 (UTC). If you already have a regular date+time in Automagic like variable
triggertime, you can just use an action like
Notification on Screen: {triggertime} which shows something like 1435172692450. Divide by 1000 in a script or inline to show the Unix time in seconds:
Notification on Screen: {triggertime/1000}
If you have a date stored as a string like "24.06.2015 20:00", you can use a script to parse the value into a regular date+time and then process the date+time the same as above.
Script to parse a date:
Code: Select all
d = getDate("24.06.2015 20:00", "dd.MM.yyyy HH:mm");
Regards,
Martin