Login Page - Create Account

Support Board


Date/Time: Fri, 26 Apr 2024 09:19:04 +0000



Post From: True Millisecond/Microsecond Time Stamping and ACSIL

[2020-07-27 04:06:16]
ejtrader - Posts: 688
SCTeam - From prior post it appears like you are going to store Date as Integer value - Which is a good news. Is there any function available to convert from current SCDateTime Value to an integer and vice Versa?


Edit - Noticed the following functions for this. Could you please confirm?

time_t TestDateUnix = SCDateTimeToUNIXTime(sc.BaseDateTimeIn[sc.ArraySize-1]);
SCDateTime TestDate = UNIXTimeToSCDateTime(TestDateUnix);

Thanks
Date Time Of Last Edit: 2020-07-27 04:18:57