Using time

Blitz3D Forums/Blitz3D Beginners Area/Using time

I have a game that has something you can only do once a day, so I need some code to run if the computer clock says it's 12:00 pm. I think I've seen it done before...
Would it be possible to do something like this:
If CurrentTime()=24,0,0 Then
code
EndIf