Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:12 20 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Datetime$

Author Message
VK2XG
Newbie

Joined: 27/01/2022
Location: Australia
Posts: 3
Posted: 12:04am 30 Jan 2022
Copy link to clipboard 
Print this post

Firstly a huge thanks to the people involved with the Picomite project. It is fantastic to be able to run basic programs on the Raspberry Pi Pico.
I am trying to run a GPS clock and display it on a LCD. I have been mostly successful. However I have an issue that I can't overcome and I hope someone can help.
I cannot get the datetime command to function. If I use datetime$(NOW) it functions OK. But if I use datetime$(n) then it tells me that the value is invalid.
Following are the commands that I have tried and the result.
> PRINT datetime$(NOW)
20-01-2022 13:29:44
>
> PRINT datetime$(0)
Error : 0 is invalid (valid is -2147483648 to 2147483647)
>
> PRINT datetime$(2147483647)
Error : 2147483647 is invalid (valid is -2147483648 to 2147483647)
>
> PRINT datetime$(-2147483648)
Error : -2147483648 is invalid (valid is -2147483648 to 2147483647)
>
 
VK2XG
Newbie

Joined: 27/01/2022
Location: Australia
Posts: 3
Posted: 12:20am 30 Jan 2022
Copy link to clipboard 
Print this post

OOPs

I just found the posts on this subject!

Sorry for the NEW post.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025