CCT Version 3.0.0.0 2024-04-23 00:00:00 Time flies when you're having fun! File out: ..\..\..\OutputFiles\CCTOut_G_TESTSELECTEDDIFFERENCES.txt ======= TestSelectedDifferences() ======= ------------------------ Common Calendar Character Format (CCF) ---------------- Date Time UTC Offset | | | Zone (Tz time zone name) | | | | Abbreviation (Posix name) | | | | | Version (Tz Database release) | | | | | | Leap-seconds | | | | | | | Saving (DST) | | | | | | | |DST bias | | | | | | | || Mode (TOD count mode) | | | | | | | || | X terminator D2015-06-30T19:59:60U-04Zamerica/new_yorkAedtV2021aL25*S01cMuX -------------------------------------------------------------------------------- TOD Count Mode TOD_LEAPSECOND_MIDNIGHT Rate CLOCK_9, nanoseconds ===================================== Duration along the local timescale AMERICA_NEW_YORK A - the last nanosec of the day BEFORE the 1972 leap-second day - 1972-06-29 (not the 30th), NEW YORK B - the first nanosec (not zeroth) of the day AFTER the 1972 leap-second day (1972-07-01), NEW YORK C - Duration: it has found the intervening leap-second (day length = 86401) D1972-06-29T23:59:59n999999999U-04Zamerica/new_yorkAedtV2021aL00S01cMmX D1972-07-01T00:00:00n000000001U-04Zamerica/new_yorkAedtV2021aL01S01cMmX P1I00:00:01n000000002X Duration along the local timescale AMERICA_NEW_YORK A - the zeroth nanosec of the 1972 leap-second day - 1972-06-30, AMERICA_NEW_YORK B - the zeroth nanosec of the day AFTER the 1972 leap-second day (1972-07-01), AMERICA_NEW_YORK C - Duration: it has found the intervening leap-second (day length = 86401) D1972-06-30T00:00:00n000000000U-04Zamerica/new_yorkAedtV2021aL00+S01cMmX D1972-07-01T00:00:00n000000000U-04Zamerica/new_yorkAedtV2021aL01S01cMmX P1I00:00:01n000000000X Duration between two local timescales, EUROPE_LONDON and AMERICA_NEW_YORK A - the zeroth nanosec of the 1972 leap-second day - 1972-06-30, EUROPE_LONDON B - the zeroth nanosec of the day AFTER the 1972 leap-second day (1972-07-01), AMERICA_NEW_YORK C - Duration: it has found time zone offset (-05:00) between EUROPE_LONDON and AMERICA_NEW_YORK, the 86400 day difference, and the intervening leap-second D1972-06-30T00:00:00n000000000U+01Zeurope/londonAbstV2021aL00+S01cMmX D1972-07-01T00:00:00n000000000U-04Zamerica/new_yorkAedtV2021aL01S01cMmX P1I05:00:01n000000000X ===================================== Duration between two local timescales, EUROPE_LONDON and AMERICA_NEW_YORK Note EUROPE_LONDON is DST wintertime and AMERICA_NEW_YORK is DST summertime Start with second before Daylight Onset 2017-03-26 EUROPE_LONDON D2017-03-26T00:59:59n000000000U+00Zeurope/londonAgmtV2021aL27S00t01a01cMmX Convert EUROPE_LONDON to AMERICA_NEW_YORK Zone This yields the same instant in EUROPE_LONDON and AMERICA_NEW_YORK Note EUROPE_LONDON is wintertime, AMERICA_NEW_YORK is summertime D2017-03-26T00:59:59n000000000U+00Zeurope/londonAgmtV2021aL27S00t01a01cMmX D2017-03-25T20:59:59n000000000U-04Zamerica/new_yorkAedtV2021aL27S01cMmX Add AMERICA_NEW_YORK UTCOffset (UTC-05:00) to AMERICA_NEW_YORK This shifts the AMERICA_NEW_YORK time Thus the YMDhms is -05:00 behind EUROPE_LONDON D2017-03-26T00:59:59n000000000U+00Zeurope/londonAgmtV2021aL27S00t01a01cMmX D2017-03-26T00:59:59n000000000U-04Zamerica/new_yorkAedtV2021aL27S01cMmX A - second before Daylight Onset 2017-03-26 EUROPE_LONDON B - 5 hours later (UTC-05:00) than A in AMERICA_NEW_YORK C - Duration: the diffrence is the zone offset (UTC-05:00) D2017-03-26T00:59:59n000000000U+00Zeurope/londonAgmtV2021aL27S00t01a01cMmX D2017-03-26T00:59:59n000000000U-04Zamerica/new_yorkAedtV2021aL27S01cMmX I05:00:00n000000000X Add one second to A and B Note EUROPE_LONDON is now summertime, AMERICA_NEW_YORK is summertime A - Second of Daylight Onset in EUROPE_LONDON B - 5 hours later (UTC-05:00) than A in AMERICA_NEW_YORK C - Duration: the diffrence is the zone offset (UTC-05:00) D2017-03-26T02:00:00n000000000U+01Zeurope/londonAbstV2021aL27S01t01a01cMmX D2017-03-26T01:00:00n000000000U-04Zamerica/new_yorkAedtV2021aL27S01cMmX I04:00:00n000000000X Your time is up.