# \[Extension\] arcade-rtc (Real Time Clock)

**URL:** https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446
**Category:** Show & Tell
**Tags:** extension
**Created:** [June 10, 2026, 2:52pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446 "2026-06-10T14:52:41Z")
**Posts on this page:** 20
**Page:** 1

<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, 2:52pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/1 "2026-06-10T14:52:41Z")

</div>

Hey folks!

I was inspired by @TheEarth’s recent [real time clock](https://forum.makecode.com/t/real-time-clock-extension/44409) extension to make my own! I present: [riknoll/arcade-rtc](https://github.com/riknoll/arcade-rtc)

> **[GitHub - riknoll/arcade-rtc: A browser-only real time clock extension for...](https://github.com/riknoll/arcade-rtc)**
>
> A browser-only real time clock extension for Microsoft MakeCode Arcade

This is a **browser-only** extension for getting the current time. Times in this extension are represented in the traditional browser format, which is milliseconds since the epoch (January 1, 1970). All functions will automatically convert that time into the local time zone based on the settings of the player’s browser/computer.

Also, because it’s fun, this extension includes a few blocks for getting the current lunar phase! This is based on data from the [US Astronomical Applications Department](https://aa.usno.navy.mil/data/api#phase) and should be accurate for any date between 2026 and 2050.

Nothing would please me more than people starting to make their games behave differently if it’s a full moon.

---

<div class="post-metadata">

### Author: ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)
#### Post date: [June 10, 2026, 3:29pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/2 "2026-06-10T15:29:20Z")

</div>

Me about to make an animal crossing like game where the time is equal to the real world time and certain things happen on special days. Or a game where the current real world lunar cycle effects your cults activies or something.

There is lots of potential here.

---

<div class="post-metadata">

### Author: ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)
#### Post date: [June 10, 2026, 5:23pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/3 "2026-06-10T17:23:51Z")

</div>

Now we just need the ability to see when the MakeCode streams will be cancelled. /j

---

<div class="post-metadata">

### Author: ![engineer703](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/engineer703/32/35135_2.png) [@engineer703](https://forum.makecode.com/u/engineer703)
#### Post date: [June 10, 2026, 5:24pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/4 "2026-06-10T17:24:00Z")

</div>

Hm, this could work really well for a Kerbal Space Program game - accurate times, and then I would have to make a physics engine and stuff like that. Guess I’ll try, why not? Time to destroy everyone’s computers with a really super sort-of accurate rocket simulator (my computer’s doomed, too)!

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [June 11, 2026, 12:07am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/5 "2026-06-11T00:07:30Z")

</div>

hmm this could be used alot, and because I always feel like doing so, I made a [tiny project](https://arcade.makecode.com/S48405-69931-82937-97270) using it. One question, why does it add browser extensions? Also, can you make it possible to get the milliseconds?

---

<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:07am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/6 "2026-06-11T00:07:37Z")

</div>

BRO YOU HAD TO STEAL MY THUNDER/j I’m fine with this lol

---

<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:07am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/7 "2026-06-11T00:07:41Z")

</div>

how did you get local time zone HOW???

---

<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:10am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/8 "2026-06-11T00:10:27Z")

</div>

it adds the browser extension because the RTC apis it uses are defined by that extension. it’s a required dependency

and to get milliseconds:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/4/d4544ad8120e9fe948a79a0574ecf6c0e3dfec98.png)

---

<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:13am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/9 "2026-06-11T00:13:09Z")

</div>

@TheEarth sorry! i tried to give you a shout out as the inspiration.

and the local time zone is already included in the dates in the browser events extension. you can see the actual implementation of those functions here:

> <https://github.com/microsoft/pxt-common-packages/blob/master/libs/browser-events/sim/time.ts>

all of the methods on the Date type return local time by default.

---

<div class="post-metadata">

### Author: ![YamJam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjam/32/29681_2.png) [@YamJam](https://forum.makecode.com/u/YamJam)
#### Post date: [June 11, 2026, 9:42pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/10 "2026-06-11T21:42:02Z")

</div>

You could make a game where on certain holidays different special events can happen, so you don’t need to make a new update and write new code exactly 2 minutes before you promised it to be released. This could also be good for games that use the settings extension, so you don’t lose your progress when you update the link.

---

<div class="post-metadata">

### Author: ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)
#### Post date: [June 11, 2026, 9:43pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/11 "2026-06-11T21:43:36Z")

</div>

Thanks! It’s also nice knowing current\_time is a number. Now it should have milliseconds and the total.

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [June 11, 2026, 10:05pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/12 "2026-06-11T22:05:45Z")

</div>

Lol all of them just use a different function  
It’s like block settings all over again

---

<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, 10:05pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/13 "2026-06-11T22:05:47Z")

</div>

no dude Im fine with this bro it ok we both wanted to do the same thing no harsh feeling

---

<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, 10:05pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/14 "2026-06-11T22:05:51Z")

</div>

I made my own local time zone selector lol

---

<div class="post-metadata">

### Author: ![Crashton\_Powerstone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/crashton_powerstone/32/33537_2.png) [@Crashton\_Powerstone](https://forum.makecode.com/u/Crashton_Powerstone)
#### Post date: [June 11, 2026, 10:05pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/15 "2026-06-11T22:05:53Z")

</div>

What a coincidence. I was thinking of a Day-Night cycle for my turn based RPG.

---

<div class="post-metadata">

### Author: ![MeatballDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meatballdev/32/28502_2.png) [@MeatballDev](https://forum.makecode.com/u/MeatballDev)
#### Post date: [June 11, 2026, 10:05pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/16 "2026-06-11T22:05:58Z")

</div>

I had an idea for that, I would love to help

 ![47eba489f15df80b88f0ff7ccef34b3f8f2d5cc1_2_690x388](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/8/384c95c69b2106d941598bede4487acaddb310ae.png)

---

<div class="post-metadata">

### Author: ![engineer703](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/engineer703/32/35135_2.png) [@engineer703](https://forum.makecode.com/u/engineer703)
#### Post date: [June 12, 2026, 2:12am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/17 "2026-06-12T02:12:30Z")

</div>

Sure, I would really appreciate the extra help. However, I want my game to include the Kerbals so that logo with ‘Makecode’ instead of ‘Kerbal’, while very cool looking and a great name, won’t really work. And the other thing is you probably won’t be able to actually work on the code unless I’m taking a break, just because of both the amount of free time I would have in the summer. So you would probably just provide assets, but if I go on vacation or I am inactive for a while, I would ping you and (if you are available) you would be able to work on the code for that time. I will make a topic for this after I complete the gravity stuff and just a proof of concept demo, and ping you there.

---

<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: [September 17, 2026, 9:41pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/18 "2026-09-17T21:41:57Z")

</div>

The best way you could homer my rtc extension rip is by making the next mini game jam boss battle pt2 its been like 2 year bro

---

<div class="post-metadata">

### Author: ![RoboVacDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robovacdev/32/29619_2.png) [@RoboVacDev](https://forum.makecode.com/u/RoboVacDev)
#### Post date: [September 17, 2026, 9:57pm UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/19 "2026-09-17T21:57:57Z")

</div>

@richard YOU DID WHAT???

---

<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: [September 18, 2026, 3:00am UTC](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446/20 "2026-09-18T03:00:57Z")

</div>

He made an extension kinda like mine but I was the og

[Next page](https://forum.makecode.com/t/extension-arcade-rtc-real-time-clock/44446.md?page=2)
