Support Board
Date/Time: Mon, 12 May 2025 08:42:47 +0000
Post From: ASCIL Creating TimeDeltas
[2023-08-19 13:25:11] |
Gradient - Posts: 122 |
Hi, I'm attempting to create a timedelta using ASCIL. I've tried: SCDateTime ExecutionTime=TradeOrder.EntryDateTime; 1) sc.BaseDateTimeIn.TimeAt(sc.Index)-ExecutionTime.GetTimeAsSCDateTime() 2) sc.BaseDateTimeIn[sc.Index].GetMinute()-ExecutionTime.GetMinute() But these yield incorrect datetime objects (i.e. year is 1900). See Attached. The attachment shows incorrect computations for timedelta using the the datetime objects(img TimeDelta Error2) as well as the GetMinute() called on the datetimes (img TimeDelta Error 1). Please Advise. Thanks. |
![]() Attachment Deleted. ![]() |