Microsoft MakeCode

Time & Date Blocks

I shared this on other forums, but not here. A few months ago I made a set of Time & Date blocks, which are now an approved extension. I’d appreciate any feedback.

They can be used for:

You can find them by searching for “microbit-pxt-timeanddate” in the extensions.

Documentation is here:

Oh, a bonus…here’s an example of a binary clock using them: .
The time needs to be set first. Hold “A” to advance the hour, then hold “B” for a bit to move on to minute. Again hold “A” to advance the minute, then “B” to move on. Then the clock will be shown. The first two columns represent the hour, then a column that blinks “:” (off 1 second then on 1 second), then two columns for the minute. The least significant bit is the bottom row of each column.