Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 20:37:27 +0000



Post From: Question about function sc.ConvertDateTimeFromChartTimeZone()

[2023-03-13 16:26:11]
Tony - Posts: 460
Hi,

For Los Angeles local time, both these lines work fine:

sc.ConvertDateTimeFromChartTimeZone(sc.CurrentSystemDateTime, TIMEZONE_LOS_ANGELES);
sc.ConvertDateTimeFromChartTimeZone(sc.CurrentSystemDateTime, "PST-08PDT+01,M3.2.0/02:00,M11.1.0/02:00");

I prefer TimeZonesEnum over TimeZonePOSIXString, because it is easier to read, but I am
not able to figure out how to assign values to a TimeZonesEnum variable. I tried:

TimeZonesEnum MyLocalTime;
MyLocalTime = TIMEZONE_LOS_ANGELES;
sc.ConvertDateTimeFromChartTimeZone(sc.CurrentSystemDateTime, MyLocalTime);

It didn't work, not sure what I missed, wonder if someone could help, thanks so much!!

Also, I would like to confirm, if I set TimeZonePOSIXString empty "", does that mean
sc.ConvertDateTimeFromChartTimeZone will have no effect (set time zone same as time chart zone) ?
Date Time Of Last Edit: 2023-03-13 17:04:14