# \[Solved\] How can I conditionally toggle a timer on/off based on time of day?

**URL:** <https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [April 3, 2022, 9:57am UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534 "2022-04-03T09:57:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![2001208x7m](https://avatars.discourse-cdn.com/v4/letter/2/e68b1a/32.png) [@2001208x7m](https://community.thunkable.com/u/2001208x7m)\
**Post date:** [April 3, 2022, 9:57am UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/1 "2022-04-03T09:57:02Z")

</div>

Hello everyone, I would like to start my timer only on a specific time rage eg 12pm to 10pm, may I know how do I go about doing it?

---

<div class="post-metadata">

**Author:** ![kizzy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kizzy/32/76421_2.png) [@kizzy](https://community.thunkable.com/u/kizzy)\
**Post date:** [April 3, 2022, 11:52am UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/2 "2022-04-03T11:52:17Z")

</div>

Use the device block set the time in there

---

<div class="post-metadata">

**Author:** ![2001208x7m](https://avatars.discourse-cdn.com/v4/letter/2/e68b1a/32.png) [@2001208x7m](https://community.thunkable.com/u/2001208x7m)\
**Post date:** [April 3, 2022, 12:13pm UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/3 "2022-04-03T12:13:50Z")

</div>

![time](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e2ee5f56e9b853aa188289c11fd10ffc9b0a60a.png)  
May I know how to pick the set time?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 3, 2022, 2:34pm UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/4 "2022-04-03T14:34:21Z")

</div>

To accomplish this, you will need **two** timers.

One that is fired every so and then to check if it is the time that the second timer should start or has the time passed and the second timer should stop.

The second timer fires to do whatever action is required after being activated by the first timer.

---

<div class="post-metadata">

**Author:** ![2001208x7m](https://avatars.discourse-cdn.com/v4/letter/2/e68b1a/32.png) [@2001208x7m](https://community.thunkable.com/u/2001208x7m)\
**Post date:** [April 3, 2022, 3:27pm UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/5 "2022-04-03T15:27:07Z")

</div>

May I know how to do the checking of time part?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 3, 2022, 5:05pm UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/6 "2022-04-03T17:05:53Z")

</div>

Check this quick demo  
[https://x.thunkable.com/projectPage/6249cf6dc235e0057299eac5](https://x.thunkable.com/projectPage/6249cf6dc235e0057299eac5)

You need to edit the condition and enter the number of minutes to start at. You can of course then enter more complicated conditions such as  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/37e39dce7159c71286763b4dafb43c15192ee98e.png)

Let me know if this is what you are looking for.

---

<div class="post-metadata">

**Author:** ![2001208x7m](https://avatars.discourse-cdn.com/v4/letter/2/e68b1a/32.png) [@2001208x7m](https://community.thunkable.com/u/2001208x7m)\
**Post date:** [April 3, 2022, 5:27pm UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/7 "2022-04-03T17:27:03Z")

</div>

Oh yes thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 2, 2022, 5:27pm UTC](https://community.thunkable.com/t/solved-how-can-i-conditionally-toggle-a-timer-on-off-based-on-time-of-day/1815534/8 "2022-07-02T17:27:54Z")

</div>

Closed on July 2, 2022, 5:27pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
