Speech output for 12-hour AM/PM time

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
User avatar
Scott
Posts: 24
Joined: 12 Dec 2015 00:09

Speech output for 12-hour AM/PM time

Post by Scott » 15 Dec 2015 18:23

I would like to have a speech output action set up that simply speaks the time in 12-hour format, including saying "AM" or "PM," as appropriate. For example, it would say:

"twelve seventeen PM"
...for 12:17 PM

Or...

"seven-oh-four AM"
...for 7:04 AM.

(How) Is this possible?
Samsung Galaxy S9+ (unrooted and cannot/will not root), Android 9.0
Latest stable Automagic version, always

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

Re: Speech output for 12-hour AM/PM time

Post by Martin » 16 Dec 2015 20:05

Hi,

Action Speech Output with text {triggertime,dateformat,hh:mm a} which will be translated to a text like 09:03 PM. Check out the documentation for other ways to format date/time: http://automagic4android.com/automagic/ ... terns.html

Regards,
Martin

Post Reply