Exact match. Not showing close matches.
PICList
Thread
'[OT] GPS Data Returned Date & Time'
1999\11\03@100227
by
Jerry Iacobucci
part 0 16 bytes
</x-html>
1999\11\03@101459
by
Andres Tarzia
Read Microchip article TB028 - "Technique to Calculate Day of Week"
available directly from Microchip ftp site at:
ftp://ftp.microchip.com/Download/Appnote/Category/16cxx/91028a.pdf
Regards,
Andres Tarzia
Technology Consultant, SMART S.A.
e-mail: spam_OUTatarziaTakeThisOuT
smart.com.ar
{Original Message removed}
1999\11\03@220409
by
Lee Jones
|
> The GPS units from slickitems
> From the date returned from the GPS (e.g.. 99 10 29), I do not
> know what the day of the week it is Sun - Sat. Is there some
> mathematical algorithm to tell me the day of week.
Convert the date into an integer "universal day", like Julian
date used for astronomical purposes. Sometimes it's easier to
base a "new year" on March 1st (so that leap days are the very
end of the previous year). Then take the "universal day" value
modulo 7 to get day of week.
A good reference for this is the book "Calendrical Calculations"
by Nachum Dershowitz and Edward M. Reingold.
> Or is there a way from data returned from GPS to know based
> where I am located if the time is daylight savings time or
> standard time.
The GPS unit, if working properly, knows where it is located
with great precision. However, daylight savings time rules are
arbitrary, capricious, politically motivated, and based on
regions defined arbitrary geopolitcal boundaries (countries,
states, counties, and random exceptions).
Converting an specific lat/long locations into the proper DST
rule is the tricky part. The task can be handled by a PIC but
the database of region boundaries is non-trivial.
Lee Jones
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- Today
- New search...