# (Cloud) Time calculations

**URL:** <https://community.homey.app/t/cloud-time-calculations/60519>\
**Category:** Questions & Help\
**Created:** [February 16, 2022, 4:13pm UTC](https://community.homey.app/t/cloud-time-calculations/60519 "2022-02-16T16:13:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [February 16, 2022, 4:13pm UTC](https://community.homey.app/t/cloud-time-calculations/60519/1 "2022-02-16T16:13:36Z")

</div>

I am trying some things on the Homey Cloud.  
How to get $timenow$ in a variable?  
I want to calculate the on-time of a switch.

I am using homey cloud, so better logic, countdown, timer,… is no option.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 17, 2022, 3:53am UTC](https://community.homey.app/t/cloud-time-calculations/60519/2 "2022-02-17T03:53:35Z")

</div>

Pick Homey “time” tag.

Now these string vars are converted to num vars.  
But how to subtract those time values… i don’t know.

(With the Chronograph app it’s easy, but, you know)

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [February 17, 2022, 8:53am UTC](https://community.homey.app/t/cloud-time-calculations/60519/3 "2022-02-17T08:53:29Z")

</div>

Thanks, the time in Homey cloud is hours and minutes, and I want seconds 🙂  
I will test some more things. It is stupid a simple thing like time now doesn’t work. It would allow timers, stopwatch etc in Homey Cloud.

I could setup a webhook which sends the Unix time every second to Homey cloud and save it as a variable :-), but it doesn’t make any sense

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 17, 2022, 9:05am UTC](https://community.homey.app/t/cloud-time-calculations/60519/4 "2022-02-17T09:05:53Z")

</div>

> [@Pieterv123](#):
>
> but it doesn’t make any sense

It does when you’re Athom: these things are considered “advanced” and require a Homey Pro.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 17, 2022, 3:29pm UTC](https://community.homey.app/t/cloud-time-calculations/60519/5 "2022-02-17T15:29:34Z")

</div>

Like Robert says. And the bridge is aimed at non-techies and should be simple to use. It’s also cheaper, so… keep things in perspective I’d say.
