I'm work on a function to set time to day for a joke

and I to run it, it says unknown function (It's for 1.21)
Continue to help post