Struct MonthDayNanosecondInterval
public struct MonthDayNanosecondInterval : IEquatable<MonthDayNanosecondInterval>
- Implements
- Inherited Members
Constructors
MonthDayNanosecondInterval(int, int, long)
public MonthDayNanosecondInterval(int months, int days, long nanoseconds)
Parameters
Fields
Days
public readonly int Days
Field Value
Months
public readonly int Months
Field Value
Nanoseconds
public readonly long Nanoseconds
Field Value
Methods
Equals(MonthDayNanosecondInterval)
public bool Equals(MonthDayNanosecondInterval interval)
Parameters
intervalMonthDayNanosecondInterval
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Operators
operator +(MonthDayNanosecondInterval, DateTime)
public static DateTime operator +(MonthDayNanosecondInterval interval, DateTime dateTime)
Parameters
intervalMonthDayNanosecondIntervaldateTimeDateTime
Returns
operator +(MonthDayNanosecondInterval, DateTimeOffset)
public static DateTimeOffset operator +(MonthDayNanosecondInterval interval, DateTimeOffset dateTime)
Parameters
intervalMonthDayNanosecondIntervaldateTimeDateTimeOffset
Returns
operator +(DateTime, MonthDayNanosecondInterval)
public static DateTime operator +(DateTime dateTime, MonthDayNanosecondInterval interval)
Parameters
dateTimeDateTimeintervalMonthDayNanosecondInterval
Returns
operator +(DateTimeOffset, MonthDayNanosecondInterval)
public static DateTimeOffset operator +(DateTimeOffset dateTime, MonthDayNanosecondInterval interval)
Parameters
dateTimeDateTimeOffsetintervalMonthDayNanosecondInterval
Returns
operator -(DateTime, MonthDayNanosecondInterval)
public static DateTime operator -(DateTime dateTime, MonthDayNanosecondInterval interval)
Parameters
dateTimeDateTimeintervalMonthDayNanosecondInterval
Returns
operator -(DateTimeOffset, MonthDayNanosecondInterval)
public static DateTimeOffset operator -(DateTimeOffset dateTime, MonthDayNanosecondInterval interval)
Parameters
dateTimeDateTimeOffsetintervalMonthDayNanosecondInterval