# Can I make a countdown using seconds since 1970?

**URL:** https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742
**Category:** Questions about Thunkable X
**Created:** [January 16, 2020, 7:45am UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742 "2020-01-16T07:45:13Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)
#### Post date: [January 16, 2020, 7:45am UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/1 "2020-01-16T07:45:13Z")

</div>

10:00  
10:59  
10:58  
10:57

I want to make a countdown from 10 minutes and stop at 00:00 as above.

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [January 16, 2020, 6:45pm UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/2 "2020-01-16T18:45:37Z")

</div>

Thanks for your question @mom7667yafy - finally got around to writing a tutorial for this.

You can find this on the **Timer** screen of the Tempus sample app:

[http://community.thunkable.com/t/working-with-times-and-dates-in-thunkable-x/54077/4?u=domhnall](http://community.thunkable.com/t/working-with-times-and-dates-in-thunkable-x/54077/4)

---

<div class="post-metadata">

### Author: ![mom7667yafy](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@mom7667yafy](https://community.thunkable.com/u/mom7667yafy)
#### Post date: [January 17, 2020, 5:29am UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/3 "2020-01-17T05:29:17Z")

</div>

Thank you.

I want to make sure that the time passed when closing the app is applied even when the app is closed.  
The information you introduced is not really a function that can be used because the time stops immediately when you close the app and the time passes when you close it.

So the information you introduced doesn’t implement what I want.

---

<div class="post-metadata">

### Author: ![Daniel\_Coglitore](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Daniel\_Coglitore](https://community.thunkable.com/u/Daniel_Coglitore)
#### Post date: [January 17, 2020, 6:32pm UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/4 "2020-01-17T18:32:37Z")

</div>

but that is a way too different question 😅 to do that maybe you can use the clock component to save every second the

“Current Countdown” and the “Day”, “Hour” and “minute” of the current users Date&Time, so if the users closed the app the clock obiusly will stop saving so when the users re-opens the app again you can retrieve the last time the users stored on his countdown and continue the countdown

is this the idea?

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 18, 2020, 7:12am UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/5 "2020-01-18T07:12:55Z")

</div>

@mom7667yafy I think. If you do the following it  
may get you on track. So basically you get 1 time and store it. Then you just see how much time as passed since you stored the first time Measure and delete this from 10 minutes.

on button click  
set var A = seconds since 1970

loop  
set var B = seconds since 1970-var A  
set text of label 1 using join text blocks with “round (600-varB)/60 with 0 decimal places”, “:”, “(remainder of 600-varB/60)  
wait 1 sec  
if round (600-varB)/60 with 0 decimal places”, “:”, "(remainder of 600-varB/60) = 0 break out of loop  
loop

does that make sense.

---

<div class="post-metadata">

### Author: ![daniel.larry](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@daniel.larry](https://community.thunkable.com/u/daniel.larry)
#### Post date: [October 2, 2021, 6:49am UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/7 "2021-10-02T06:49:35Z")

</div>

please can you provide screenshots?  
It makes sense but as a novice life’s hard

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:45am UTC](https://community.thunkable.com/t/can-i-make-a-countdown-using-seconds-since-1970/410742/8 "2024-11-08T11:45:59Z")

</div>


