Calendar event_start variable number?

Post your questions and help other users.

Moderator: Martin

Post Reply
holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Calendar event_start variable number?

Post by holymoz » 09 Sep 2017 21:22

Hi, in calendar trigger when I recall the time supplied variables (exmp. {event_start}) it appear like a long numeric code instead of a time format (hh:mm) why? Thanks

simon_magus101
Posts: 38
Joined: 06 Sep 2017 06:59

Re: Calendar event_start variable number?

Post by simon_magus101 » 10 Sep 2017 00:43

Try {event_start, dateformat, HH:mm:ss}

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Calendar event_start variable number?

Post by Martin » 10 Sep 2017 08:29

The reason is that each date/time internally is represented as the number of milliseconds since 01.01.1970. The dateformat is used to tell how you want to see it. Also check out the documentation: http://automagic4android.com/automagic/ ... terns.html

Regards,
Martin

holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Re: Calendar event_start variable number?

Post by holymoz » 10 Sep 2017 09:43

Thanks to all, it works.
I needed it because sometimes calendar app doesn't notify so I set a flow to notify me the events anyway

Post Reply