API Reference
Class
TimeHelper
Helper methods for calculating inactivity cutoffs and password ages.
Inheritance
- Object
- TimeHelper
Methods
public static Int32 AgeInDays(Nullable<DateTime> timestamp) #Returns:
Int32Calculates age in days for the provided timestamp. Returns MaxValue when timestamp is null.
Parameters
- timestamp System.Nullable{System.DateTime}
public static Nullable<DateTime> MostRecent(Nullable<DateTime> first, Nullable<DateTime> second) #Returns:
Nullable<DateTime>Determines the most recent timestamp between two values.
Parameters
- first System.Nullable{System.DateTime}
- second System.Nullable{System.DateTime}
public static DateTime ThresholdUtc(Int32 days) #Returns:
DateTimeReturns a UTC cutoff date days days in the past.
Parameters
- days System.Int32