# Real time clock \[Extension\] \[Deprecated\]

**URL:** https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409
**Category:** Show & Tell
**Created:** [June 8, 2026, 5:11pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409 "2026-06-08T17:11:08Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 8, 2026, 5:11pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/1 "2026-06-08T17:11:09Z")

</div>

I made a new extension for a real time clock thanks richard for squeezing in the feature to get a unix with that I could create this cool extension I will make a github extension out of this soon

## PNG Import

 ![arcade-RTC (1)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/d/ad29b150a7e114844290d0909a2c231464c6bad1.png)

## Extension URL

Paste into the extension search bar.

> **[GitHub - NotARealAccSorry/RealTimeClock: A MakeCode project](https://github.com/NotARealAccSorry/RealTimeClock)**
>
> A MakeCode project

---

<div class="post-metadata">

### Author: ![undefined\_62796](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/undefined_62796/32/31874_2.png) [@undefined\_62796](https://forum.makecode.com/u/undefined_62796)
#### Post date: [June 8, 2026, 5:48pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/2 "2026-06-08T17:48:24Z")

</div>

THIS IS AWESOME! I’ve been waiting for this for so long!

---

<div class="post-metadata">

### Author: ![Ctrl\_Delete\_Codemode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ctrl_delete_codemode/32/32477_2.png) [@Ctrl\_Delete\_Codemode](https://forum.makecode.com/u/Ctrl_Delete_Codemode)
#### Post date: [June 8, 2026, 7:03pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/3 "2026-06-08T19:03:08Z")

</div>

can you put in the extension utc-4

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 9, 2026, 4:42am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/4 "2026-06-09T04:42:01Z")

</div>

[https://github.com/NotARealAccSorry/RealTimeClock](https://github.com/NotARealAccSorry/RealTimeClock) added more timezones

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 9, 2026, 4:42am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/5 "2026-06-09T04:42:13Z")

</div>

also @AlexK my goat could you add this to the topic start

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [June 9, 2026, 4:43am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/6 "2026-06-09T04:43:52Z")

</div>

Roger that.

---

<div class="post-metadata">

### Author: ![ScriptScraper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/scriptscraper/32/35438_2.png) [@ScriptScraper](https://forum.makecode.com/u/ScriptScraper)
#### Post date: [June 9, 2026, 4:52am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/7 "2026-06-09T04:52:28Z")

</div>

This is awesome! Could this be used to track time that’s passed when a game is closed? I could use that to make the zen garden in pvz

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [June 9, 2026, 5:33pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/8 "2026-06-09T17:33:52Z")

</div>

Can you post an example of it working! I would love to add this to the Awesome Arcade website but I can’t get it to work myself, maybe I’m missing something really obvious lol

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [June 9, 2026, 5:53pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/9 "2026-06-09T17:53:49Z")

</div>

glancing at the code for this project, your approach isn’t going to work in makecode. there’s no way to run browser javascript from an extension like you’re trying to do in the `runBrowserJS` function (that would be a pretty huge security risk!)

that being said, i did indeed sneak this functionality into the browser events extension; i just never added blocks for it. here’s an example of how to use the javascript apis:

> **[real-time-clock](https://arcade.makecode.com/S31334-92123-20230-18738)**
>
> An example of how to use the RTC apis in the browser events extension

---

<div class="post-metadata">

### Author: ![Ctrl\_Delete\_Codemode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ctrl_delete_codemode/32/32477_2.png) [@Ctrl\_Delete\_Codemode](https://forum.makecode.com/u/Ctrl_Delete_Codemode)
#### Post date: [June 9, 2026, 6:44pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/10 "2026-06-09T18:44:55Z")

</div>

Why a have only this when i paste the extension? In your project it have more block

 ![Screenshot 2026-06-09 14.37.12](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/5/155eb708de7452ed3e9a11f1d2a1f02ba868d30f.png)

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 10, 2026, 3:33am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/11 "2026-06-10T03:33:57Z")

</div>

ye

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 10, 2026, 3:38am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/12 "2026-06-10T03:38:32Z")

</div>

> [@richard](#):
>
> glancing at the code for this project, your approach isn’t going to work in makecode. there’s no way to run browser javascript from an extension like you’re trying to do in the `runBrowserJS` function (that would be a pretty huge security risk!)

Huh your right I fixed it with the png version an it should owrk

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 10, 2026, 3:38am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/13 "2026-06-10T03:38:49Z")

</div>

yeah I saw that one post with that I forgot where tho I found those apis and turned them into an extension I asked ai what a unix was since I got a crazy long number

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [June 10, 2026, 3:00pm UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/14 "2026-06-10T15:00:50Z")

</div>

@TheEarth yeah, times returned by those APIs are in milliseconds since the start of the current epoch (January 1st, 1970), aka [unix time](https://en.wikipedia.org/wiki/Unix_time), which is the traditional way that times are represented on computers. that’s why the current time function returns such a crazy high number.

fun fact: since that number is so high, it’s actually going to be a problem in [2038](https://en.wikipedia.org/wiki/Year_2038_problem) for some computers

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [June 11, 2026, 12:15am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/15 "2026-06-11T00:15:30Z")

</div>

@AlexK please lock this toic and add [Deprecated] to the end of my topic name

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [June 11, 2026, 12:16am UTC](https://forum.makecode.com/t/real-time-clock-extension-deprecated/44409/16 "2026-06-11T00:16:17Z")

</div>


