TestimoX

API Reference

Class

TimeHelper

Namespace ADPlayground.Helpers
Assembly ADPlayground
Modifiers static

Helper methods for calculating inactivity cutoffs and password ages.

Inheritance

  • Object
  • TimeHelper

Methods

public static Int32 AgeInDays(Nullable<DateTime> timestamp) #
Returns: Int32

Calculates age in days for the provided timestamp. Returns MaxValue when timestamp is null.

Parameters

timestamp System.Nullable{System.DateTime} requiredposition: 0
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} requiredposition: 0
second System.Nullable{System.DateTime} requiredposition: 1
public static DateTime ThresholdUtc(Int32 days) #
Returns: DateTime

Returns a UTC cutoff date days days in the past.

Parameters

days System.Int32 requiredposition: 0