[LEAPSECS] leapseconds, converting between GPS time (week, second) and UTC
Paul Hirose
cfuhb-acdgw at earthlink.net
Thu Jan 17 01:24:46 EST 2019
On 2019-01-16 1:35, Steve Allen wrote:
>
> Does it know that rubber seconds do not apply to timestamps in central
> Europe made using DCF77 from 1970-01-01 to 1972-01-01?
All my DLL knows is what's in the UTC file. If the file indicates no
rate offset in the years 1970-71 and some fractional second step
adjustments, that's what you get. An existing file could be edited to
match the DCF77 flavor of UTC. Then construct a UtcTable object from the
file:
SofaJpl.UtcTable dcf77Table = new SofaJpl.UtcTable(filename);
Construct a Utc object with that table as a parameter.
SofaJpl.Utc utc = new SofaJpl.Utc(year, month, day, fracday, dcf77Table);
Variable "utc" will convert itself to TT based on the custom table.
Then, to complete a round trip, create another Utc object from that TT
and the custom table. When formatted as date/time you get the original UTC.
More information about the LEAPSECS
mailing list