Class RelativeDate
Represents a date relative to some point in the client's timezone which can be evaluated during query execution.
public sealed class RelativeDate
- Inheritance
-
RelativeDate
- Inherited Members
Constructors
RelativeDate(Anchor, TimeSpan)
public RelativeDate(RelativeDate.Anchor anchor, TimeSpan offset)
Parameters
anchorRelativeDate.AnchoroffsetTimeSpan
Properties
Now
public static RelativeDate Now { get; }
Property Value
Today
public static RelativeDate Today { get; }
Property Value
Methods
Add(TimeSpan)
public RelativeDate Add(TimeSpan value)
Parameters
valueTimeSpan
Returns
AddDays(double)
public RelativeDate AddDays(double days)
Parameters
daysdouble
Returns
AddHours(double)
public RelativeDate AddHours(double hours)
Parameters
hoursdouble
Returns
AddMinutes(double)
public RelativeDate AddMinutes(double minutes)
Parameters
minutesdouble
Returns
AddSeconds(double)
public RelativeDate AddSeconds(double seconds)
Parameters
secondsdouble
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
implicit operator DateOnly(RelativeDate)
public static implicit operator DateOnly(RelativeDate value)
Parameters
valueRelativeDate
Returns
implicit operator DateTime(RelativeDate)
public static implicit operator DateTime(RelativeDate value)
Parameters
valueRelativeDate
Returns
implicit operator DateTimeOffset(RelativeDate)
public static implicit operator DateTimeOffset(RelativeDate value)
Parameters
valueRelativeDate