54 return TimeSpan(_ticks - other._ticks);
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Base object class for DotNetDupe mirroring .NET System.Object.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Represents a time interval.
Represents a point in time, typically expressed as a date and time of day, relative to Coordinated Un...
bool operator==(const DateTimeOffset &other) const
Indicates whether two DateTimeOffset instances represent the same point in time.
bool operator>(const DateTimeOffset &other) const
Indicates whether one DateTimeOffset occurs later than another.
bool operator<=(const DateTimeOffset &other) const
Indicates whether one DateTimeOffset occurs earlier than or at the same time as another.
int64_t GetTicks() const
Gets the number of ticks that represent the date and time of the current DateTimeOffset object in UTC...
DateTimeOffset(int64_t ticks)
Initializes a new instance of DateTimeOffset with the specified number of ticks.
String ToString() const
Converts the value of the current DateTimeOffset object to its equivalent string representation.
static DateTimeOffset Now()
Gets a DateTimeOffset object that is set to the current date and time on the current computer,...
DateTimeOffset()
Initializes a new instance of DateTimeOffset to 0 ticks.
bool operator<(const DateTimeOffset &other) const
Indicates whether one DateTimeOffset occurs earlier than another.
bool operator>=(const DateTimeOffset &other) const
Indicates whether one DateTimeOffset occurs later than or at the same time as another.
static DateTimeOffset UtcNow()
Gets a DateTimeOffset object whose date and time are set to the current Coordinated Universal Time (U...
TimeSpan operator-(const DateTimeOffset &other) const
Subtracts a DateTimeOffset from this instance to calculate the elapsed TimeSpan.
bool operator!=(const DateTimeOffset &other) const
Indicates whether two DateTimeOffset instances represent different points in time.
Supports all classes in the DotNetDupe class hierarchy.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Represents a time interval (duration of time or elapsed time) measured as a positive or negative numb...
TimeSpan()
Initializes a new instance of TimeSpan to zero duration.