Day/night block?

Is there a block that can tell when its the day, afternoon, or night?

I know theres the timer block, but it doesn’t seem to be helpful.

Or one where it can tell when its AM and PM?

Using the untitled script pic (17) block, you actually can do this:

And for AM/PM (true is PM):

(Note that to get the >= block, right click a > block and click relabel, and finally select it from there).
Adjust the blocks if needed!
And also, just a note; if these blocks helped you mark this reply as a solution, to help future people coming across this post!

I don’t know yet but wait until it’s Officially released. :upside_down_face:

what are you talking about?

Typically custom blocks solve a lot of problems or needs. Always check for block libraries in forums or in the libraries tab in the files tab on the top left of the page in the editor. There’s an AM/PM block in one of the custom libraries someone made on forums. As well as numerous others. But yes the AM/PM block is relatively easy to make. And thanks to @codingisfun2831t for the nice block layout, you don’t even need to look.

Off topic

just realized what your pfp is. Cool cube pattern. @codingisfun2831t!

Off-topic

Superflip!

Thanks :slight_smile:

is the (+current+time+of+day) block a custom though (weird question ik)

yes, it’s a custom block

good to know

what about the (else x 3 block?)

That’s a primitive/vanilla block. You use the regular IF, and click on the arrows at the bottom

ohhhh

the Official Day-night Block from Snap! 13.0.0 (I requested it to the Creators of Snap!)

That’s kind of counter intuitive don’t you think?

Snap! devs wont add a really simple block you could make in Custom Blocks, and besides; the next version of Snap! coming is Snap! v12…

When?

I don’t think that’s how it works. Adding an unnecessary block to snap that is also uncommon in use but easy to create yourself undermines the original goal of adding as few blocks to snap to create a lot of functionality.

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