Determines whether one specified DateTimeOffset object is less than a second specified DateTimeOffset object.
true if the DateTimeOffset.UtcDateTime value of left is earlier than the DateTimeOffset.UtcDateTime value of right; otherwise, false.
The DateTimeOffset.op_LessThanOrEqual(DateTimeOffset, DateTimeOffset) method defines the operation of the less than or equal to operator for DateTimeOffset objects. It enables code such as the following:
code reference: System.DateTimeOffset.Operators#12
Languages that do not support custom operators can call the DateTimeOffset.Compare(DateTimeOffset, DateTimeOffset) method instead. Some languages can also call the DateTimeOffset.op_LessThanOrEqual(DateTimeOffset, DateTimeOffset) method directly, as the following example shows.
code reference: System.DateTimeOffset.Operators#13
Before evaluating the left and right operands, the operator converts both values to Coordinated Universal Time (UTC). The operation is equivalent to the following:
code reference: System.DateTimeOffset.Syntax#9