Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:30 02 May 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 : Pico GPS(Time)

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1959
Posted: 03:06am 27 Apr 2025
Copy link to clipboard 
Print this post

PicoMite V5.09
The manual says
  Quote  GPS(TIME) Returns the normal time string corrected for local time eg, “12:09:33”.

However it is returning UTC, do I have to do something to get it to return local time.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6212
Posted: 03:22am 27 Apr 2025
Copy link to clipboard 
Print this post

You can specify the offset when initializing the gps port

OPEN comspec$ AS GPS [,timezone_offset] [,monitor]

VK7JH
MMedit
 
Supertech

Newbie

Joined: 13/11/2016
Location: Australia
Posts: 34
Posted: 03:28am 27 Apr 2025
Copy link to clipboard 
Print this post

From my knowledge you need to at minimum add or sutract to become your timezone.

Like I'm in Auzzie land, so I need to do UTC +10 to become EST (Eastern Standard Time), however we also have this 'Daylight Savings' time active for us from October to April becoming DEST, the  D=Daylight Savings, one hour foward, then removed as it ends.
Thus, UTC +11 only during Daylight Savings for States in Australia that use it.

Now this DEST is much harder to deal with in programming. I have written my own, but it is not 100% ATM.

I work with routers, network switches, alarm, cctv systems etc. You would not believe how many of them do not work properly with DEST zone changes. They have terrible faulty coding that just don't work. So mine looks good so far.

Hope this helps...

Regards.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1959
Posted: 03:28am 27 Apr 2025
Copy link to clipboard 
Print this post

Thanks, I was just going to post didn't RTF manual properly.
Thanks Jim.
Edited 2025-04-27 13:28 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Supertech

Newbie

Joined: 13/11/2016
Location: Australia
Posts: 34
Posted: 03:43am 27 Apr 2025
Copy link to clipboard 
Print this post

Unfortunately I not yet used a GPS module.

Jim is spot on, as I do actually have a GPS module for a customer who didn't need project built, some while ago and forgot it has these commands available.

One day maybe.....?

Great you got it going
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1959
Posted: 04:02am 27 Apr 2025
Copy link to clipboard 
Print this post

@ Supertech
Read this post some good Daylight Saving routines,
Daylight Saving
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
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