500 Year Calendar for DT Elapsed Timer


Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Hi Guys,
    This came in handy for me today, so I just wanted to share the tip.
    If you are reading UTC time from GPS, and want to display your local time,
    there’s no other way but having a complete calendar to know what the date is going to be
    if your adjustment of the hours made a day change over.

    If you read 22:00 UTC time from the GPS, and in my location, have to add the offset +10,
    you would have the time 32:00, and would have watched for 24 hour overflow in an hours buffer,
    so the time would be displayed correctly as 08:00. The day could have been incremented on the
    overflow of the hours buffer as well, but it could have also been the last day of the month or year,
    and you need to know how many days are in the particular month for the current year.

    This all didn’t really occur to me until I next read the time from a GPS module,
    but the limitation has hit me before.
    Cheers, Art.
    Last edited by Art; - 8th May 2015 at 11:56.

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. Compiling error on Elapsed timer
    By tacbanon in forum General
    Replies: 2
    Last Post: - 9th September 2012, 13:09
  3. Totally Baffled with Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th June 2008, 21:01
  4. SPWM and Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th May 2008, 03:16
  5. DT Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th March 2008, 23:17

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts