CCT Version 3.0.0.0 2024-04-23 00:00:00 Time flies when you're having fun! File out: ..\..\..\OutputFiles\CCTOut_I_TESTGETWINDOWSTIME.txt ====== TestGetWindowsTime() ====== --- Get Windows time zone information from Windows registry Daylight Saving time in effect Windows Display Name (UTC-05:00) Eastern Time (US & Canada) --- Find Tz Database name from Windows display name Windows zone name: (UTC-05:00) Eastern Time (US & Canada) CLDR idx [22] Tz Database zone name: America/New_York idx [255] --- Set CCT time zone from Windows Display Name --- Set CCT to operate at Windows resolution, 100 nanoseconds (CLOCK_7) --- call Win32::GetSystemTimeAsFileTime() (FILETIME is 100-nanoseconds since 1601-01-01 'UTC' without leap-seconds) ------ Populate Common Calendar (CCT) from Windows FILETIME -------- --- call CCct->SetFromWindowsFILETIME() --- Show CCT CCbf member values: CBFTime_st:: m_eRateEnumeration CLOCK_7 m_bLocalDateExt TRUE m_b24HourPeriodExt FALSE m_bCounterSign positive m_eCounterSize COUNTERSIZE_48 m_ulCounterLow32 135047154 CBFCounterHigh16_st:: m_unCounterHigh16 157 CBFTime_st Counter 674444912626 CBFLocalDate_st:: m_l1970DayNumber 19840 m_nLeapsecs 27 m_TZDTimeZoneID_st.m_unZoneIdx idx[255] America/New_York m_TZDTimeZoneID_st.m_unTzDataReleaseYear 49 m_TZDTimeZoneID_st.m_unTzDataReleaseLetter 0 m_TZDTimeZoneID_st.m_bCBFLocationExt FALSE m_TZDTimeZoneID_st.m_bCBFAbbrExt TRUE m_TZDTimeZoneID_st.m_bCBFAbbrChangeExt FALSE m_lUTCOffset -18000 m_eTODMode TOD_LEAPSECOND_UTC_UTC m_eDstMode DSTCOUNTMODE_CONVENTIONAL m_bIsLeapSecondDay FALSE m_bIsLeapSecond FALSE m_bIsLeapSecondNegative FALSE m_bUtcShiftExt FALSE m_bDstBiasExt TRUE m_bDstTransDayExt FALSE CBFAbbr:: edt CBFDstBias_st:: m_eDSTBias 3600 CBF Total size 31 bytes 248 bits CCbf UTC1970 seconds.100ns Rate 1714257871.4912626 CLOCK_7 --- Assemble CCT binary CBF format from class CCbf data --- print the interchange bytes as hexadecimal 06 05 -f2 -a7 0c 08 00 00 -9d 00 -80 4d 00 00 -80 0d 00 -ff 00 31 10 -b0 -b9 55 00 00 10 0e -e5 -e4 74 size 31 --- Construct CCcf character format from class CCbf data and print D2024-04-27T18:44:04h4912626U-04Zamerica/new_yorkAedtV2021aL27S01cMuX --- print Windows times from native SYSTEMTIME 2024-04-27T18:44:04.491 Windows SYSTEMTIME_Local 2024-04-27T22:44:04.491 Windows SYSTEMTIME_UTC Your time is up.