Class DateTimeExtensions
Extensions for the System.DateTime type.
Inheritance
System.Object
DateTimeExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeyWimey
Assembly: cs.temp.dll.dll
Syntax
public static class DateTimeExtensions
Methods
Name | Description |
---|---|
ChangeKind(DateTime, DateTimeKind) | Returns a System.DateTime instance with the System.DateTime.Kind property set to the specified value, but otherwise representing the same time as original. |
IsFuture(DateTime) | Returns true if |
IsFuture(DateTime, IClock) | Returns true if |
IsPast(DateTime) | Returns true if |
IsPast(DateTime, IClock) | Returns true if |
TruncateToHours(DateTime) | Returns a new System.DateTime value equivalent to the one provided but with zero minute, second, and millsecond components. |
TruncateToMinutes(DateTime) | Returns a new System.DateTime value equivalent to the one provided but with zero second and millsecond components. |
TruncateToSeconds(DateTime) | Returns a new System.DateTime value equivalent to the one provided but with a zero millsecond component. |