Page 1 of 1

am/pm conditions

Posted: 08 Dec 2014 13:38
by Ghostnet12
Can any one help me with adding am and pm conditions for time pleas. Thnx

Re: am/pm conditions

Posted: 08 Dec 2014 17:09
by Martin
Hi,

Sorry, I don't understand what you want to achieve, could you please explain what your goal is or what your flow should do?
You can use condition Time Range to check if the time is currently between 1am and 2am when a flow is executed.

Regards,
Martin

Re: am/pm conditions

Posted: 08 Dec 2014 21:26
by Ghostnet12
I have a flow that have made a short cut for on my pull down screen of my phone. Any when I press the icon it speaks out loud "its 2:30". Is there any way I can throw in a variable or condition that will add the am or pm condition to the time. I have tried adding (DA) at the end of a time date trigger algorithm. All it adds is " 8am" at the end. Which doesn't help at all.

Re: am/pm conditions

Posted: 09 Dec 2014 17:59
by Martin
You can use the character a in a date format to show the AM/PM text. Something like this should work:
{triggertime,dateformat,hh:mm a}

The supported patterns are documented on this page:
Date Format Pattern