CCT Version 3.0.0.0 2024-04-23 00:00:00 Time flies when you're having fun! File out: ..\..\..\OutputFiles\CCTOut_N_TESTGETPOSIXTIMEANDCCTCALENDAR.txt ========= TestGetPosixTimeAndCCTCalendar() ========= ------ Populate Common Calendar (CCT) from Posix date and time -------- call Posix time() - (time_t is seconds since 1970-01-01 'UTC' without leap-seconds) Get most recent leap-second from CCT leap-seconds table Add leap-seconds from CCT CTaiUtcInfo) Set CCT binary params from i641970SecondsUTC including zone ETC_UTC and RATE CLOCK_0 (seconds) and convert to CCF YMDhms character D2024-04-27T22:44:04U+00Zetc/utcAutcV2021aL27MuX Convert CCT binary to local zone AMERICA_NEW_YORK and convert to CCF YMDhms character D2024-04-27T18:44:04U-04Zamerica/new_yorkAedtV2021aL27S01cMuX -- YMDhms via Posix time API calls -- call gmtime() - (converts time_t ('UTC') to struct tm ('UTC' YMDhms)) 2024-04-27 22:44:04 call localtime() - (time_t as local time struct tm (local YMDhms) 2024-04-27 18:44:04 POSIX local time Create CCT Calendar month. APRIL 2024 --------------------------- Sun Mon Tue Wed Thu Fri Sat 31 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27* 28 29 30 1 2 3 4 5 6 7 8 9 10 11 --------------------------- D2024-04-27T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714248027 [SATURDAY 2024 APRIL 27 08:00:00:00pm America/New_York -04:00] [Normal LeapSeconds:27 IsNotLeapYear 1714248027s] ---- CCctCalendar Month array values as CCF ---- D2024-03-31T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1711929627 idx 0 D2024-04-01T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712016027 idx 1 D2024-04-02T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712102427 idx 2 D2024-04-03T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712188827 idx 3 D2024-04-04T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712275227 idx 4 D2024-04-05T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712361627 idx 5 D2024-04-06T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712448027 idx 6 D2024-04-07T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712534427 idx 7 D2024-04-08T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712620827 idx 8 D2024-04-09T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712707227 idx 9 D2024-04-10T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712793627 idx 10 D2024-04-11T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712880027 idx 11 D2024-04-12T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1712966427 idx 12 D2024-04-13T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713052827 idx 13 D2024-04-14T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713139227 idx 14 D2024-04-15T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713225627 idx 15 D2024-04-16T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713312027 idx 16 D2024-04-17T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713398427 idx 17 D2024-04-18T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713484827 idx 18 D2024-04-19T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713571227 idx 19 D2024-04-20T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713657627 idx 20 D2024-04-21T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713744027 idx 21 D2024-04-22T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713830427 idx 22 D2024-04-23T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1713916827 idx 23 D2024-04-24T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714003227 idx 24 D2024-04-25T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714089627 idx 25 D2024-04-26T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714176027 idx 26 D2024-04-27T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714262427 idx 27 D2024-04-28T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714348827 idx 28 D2024-04-29T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714435227 idx 29 D2024-04-30T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714521627 idx 30 D2024-05-01T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714608027 idx 31 D2024-05-02T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714694427 idx 32 D2024-05-03T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714780827 idx 33 D2024-05-04T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714867227 idx 34 D2024-05-05T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1714953627 idx 35 D2024-05-06T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1715040027 idx 36 D2024-05-07T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1715126427 idx 37 D2024-05-08T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1715212827 idx 38 D2024-05-09T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1715299227 idx 39 D2024-05-10T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1715385627 idx 40 D2024-05-11T20:00:00U-04Zamerica/new_yorkAedtV2021aL27S01cMuX // 1715472027 idx 41 Your time is up.