C# Класс EqualityComparer.DateTimeExtensions

Date time extensions.
7/19/2011.
Показать файл Открыть проект

Открытые методы

Метод Описание
RoundToNearestSecond ( this value ) : System.DateTime

A DateTime extension method that rounds DateTimes to the nearest second.

7/19/2011.

TruncateToSecond ( this value ) : System.DateTime

Truncates DateTime to second, so that JSON values with DateTimes can be roundtripped / compared properly.

7/19/2011.

Описание методов

RoundToNearestSecond() публичный статический Метод

A DateTime extension method that rounds DateTimes to the nearest second.
7/19/2011.
public static RoundToNearestSecond ( this value ) : System.DateTime
value this Original DateTime value.
Результат System.DateTime

TruncateToSecond() публичный статический Метод

Truncates DateTime to second, so that JSON values with DateTimes can be roundtripped / compared properly.
7/19/2011.
public static TruncateToSecond ( this value ) : System.DateTime
value this Original DateTime value.
Результат System.DateTime