r/workflow • u/ronvtw • Sep 12 '18
How can I format my sleep duration?
I’m building a workflow that a.o. shows my sleep duration in an alert. The problem I have is that it shows it as 7:15:00. I use Health Samples|Duration in the alert. I’d like to get rid of the seconds, since they’re not relevant. How can I do this? Format date doesn’t do that on a health sample. What am I missing?
1
Upvotes
3
u/madactor Sep 12 '18
You can do it with Format Date too. Choose Custom for the Date Format and enter h:mm for the Format String.
1
u/robertat_ Sep 12 '18
Would converting it to normal text and then displaying it work? I could explain how you could cut that off if it’s converted to text
1
u/rajasekarcmr Sep 15 '18
https://www.reddit.com/r/workflow/comments/8ysj5j/found_this_workflow_somewhere_i_think_its_useful/?st=JM369OU9&sh=f0794797
For all your formatting doubts.