Class DateTimeUtils
- Namespace
- DurableTask.Core.Common
- Assembly
- DurableTask.Core.dll
Extension methods for DateTime
public static class DateTimeUtils
- Inheritance
-
DateTimeUtils
- Inherited Members
Fields
MinDateTime
Returns minimum allowable DateTime, allows overriding this for the storage emulator. The Storage emulator supports a min datetime or DateTime.FromFileTimeUtc(0) Do not alter this value. Kept as field to have backward compatibility(#319).
public static DateTime MinDateTime
Field Value
Methods
IsSet(DateTime)
Returns bool indicating is the datetime has a value set
public static bool IsSet(this DateTime dateTime)
Parameters
dateTime
DateTime
Returns
SetMinDateTimeForStorageEmulator()
Uses reflection to alter the static readonly MinDateTime value for tests
public static void SetMinDateTimeForStorageEmulator()