It is not suppose to be that way.
Here are a few tricks.
These explain themselves. The variables get loaded with standard EL date and time format.
Code: Select all
LeftSideOfScreenDate = JulianToDate(GetAppInfo(aiLeftDispDateTime));
LeftSideOfScreenTime = DateTime2ELTime(GetAppInfo(aiLeftDispDateTime));
RightSideOfScreenDate = JulianToDate(GetAppInfo(aiRightDispDateTime));
RightSideOfScreenTime = DateTime2ELTime(GetAppInfo(aiRightDispDateTime));
viewtopic.php?f=5&t=6862
Although the function in the link above can add and subtract minutes the more common way and possibly the faster way is shown below. Of course you can add or subtract.
Code: Select all
1MinuteBarChartTime3MinutesAheadOfLastBar = MinutesToTime(TimeToMinutes(Time) + 3);
Minutes between bars (after you have put the bar times in NewTime and OldTime).
Code: Select all
MinutesBetween = TimeToMinutes(NewTime) - TimeToMinutes(OldTime);
Code: Select all
DateBeforeCurrentDate = JulianToDate(DateToJulian(CurrentDate) - 1);
Date3daysBeforeCurrentDate = JulianToDate(DateToJulian(CurrentDate) - 3);
Code: Select all
TomorrowsDate = JulianToDate(DateToJulian(CurrentDate) + 1);