QuantConnect Lean Algorithmic Trading Engine
Fields  Methods 


Time Class Members

The following tables list the members exposed by Time.

Public Fields
 NameDescription
Public Fieldstatic (Shared in Visual Basic) Provides a value far enough in the past that can be used as a lower bound on dates  
Public Fieldstatic (Shared in Visual Basic) Provides a value far enough in the future the current computer hardware will have decayed :)  
Public Fieldstatic (Shared in Visual Basic)Provides a value large enough that we won't hit the limit, while small enough we can still do math against it without checking everywhere for System.TimeSpan.MaxValue  
Public Fieldstatic (Shared in Visual Basic) One Day TimeSpan Period Constant  
Public Fieldstatic (Shared in Visual Basic) One Hour TimeSpan Period Constant  
Public Fieldstatic (Shared in Visual Basic) One Millisecond TimeSpan Period Constant  
Public Fieldstatic (Shared in Visual Basic) One Minute TimeSpan Period Constant  
Public Fieldstatic (Shared in Visual Basic) One Second TimeSpan Period Constant  
Top
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic) Convert a Datetime to Unix Timestamp  
Public Methodstatic (Shared in Visual Basic) Define an enumerable date range and return each date as a datetime object in the date range  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Define an enumerable date range of tradeable dates - skip the holidays and weekends when securities in this algorithm don't trade.  
Public Methodstatic (Shared in Visual Basic) Define an enumerable date range of tradeable dates but expressed in a different time zone.  
Public Methodstatic (Shared in Visual Basic) Determines the start time required to produce the requested number of bars and the given size  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Returns the timespan with the larger value  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Returns the timespan with the smaller value  
Public Methodstatic (Shared in Visual Basic) Normalizes the current time within the specified period time = start => 0 time = start + period => 1  
Public Methodstatic (Shared in Visual Basic)Normalizes the implied time step between last and current within the specified rang  
Public Methodstatic (Shared in Visual Basic) Parse a standard YY MM DD date into a DateTime. Attempt common date formats  
Public Methodstatic (Shared in Visual Basic) Get the current time as a unix timestamp  
Public Methodstatic (Shared in Visual Basic) Make sure this date is not a holiday, or weekend for the securities in this algorithm.  
Public Methodstatic (Shared in Visual Basic) Could of the number of tradeable dates within this period.  
Public Methodstatic (Shared in Visual Basic) Create a C# DateTime from a UnixTimestamp  
Public Methodstatic (Shared in Visual Basic) Create a C# DateTime from a UnixTimestamp  
Top
See Also