ToUtcKind Method
Definition
- Namespace
- Cuemon
- Assemblies
- Cuemon.Core.dll
ToUtcKind(IDecorator<DateTime>)
Converts the enclosed DateTime of the decorator to a Coordinated Universal Time (UTC) representation.
public static DateTime ToUtcKind(this IDecorator<DateTime> decorator)
Parameters
decoratorIDecorator<DateTime>The IDecorator<T> to extend.
Returns
- DateTime
A new DateTime value initialized to Utc that has the same number of ticks as the object represented by the enclosed DateTime of the
decorator.
Exceptions
- ArgumentNullException
decoratorcannot be null.