[PINPOINT-1812]  Obscure bug in time conversion
Type Bug
Priority Low
Severity Trivial
Component Astrometric Engine
Fixed In Version [7.07.0
Versions Affected [6.16.1
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 3/7/2021

Description
Pierre de Ponthiere, Lesve Photometry developer, reports that SGP produces DATE-OBS with a bunch of decimal digits. When the seconds end in .9999 or more nines, the ExposureStartTime becomes junk (Windows null struct 1601, etc.).

Comments
3/7/2021 6:07:01 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/pinpoint
SVN Revision 206
Affected files /trunk/HTML Help/doc/PinPointRELNOTES.htm (Modified)
/trunk/engine/PinPoint.cpp (Modified)
Check-in comment Fix DATE-OBS conversion when seconds contain .9999 or more nines in the decimal digits of the seconds. GEM:1812
3/7/2021 5:27:42 PM   Bob Denny
Edge condition extracting the seconds part, ending up with SYSTEMTIME with milliseconds part = 1000. Oops. The SystemTimeToFileTime() chokes, resulting in FILETIME of 0.  into