C# Class EqualityComparer.DateTimeExtensions

Date time extensions.
7/19/2011.
Afficher le fichier Open project: Iristyle/EqualityComparer

Méthodes publiques

Méthode Description
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.

Method Details

RoundToNearestSecond() public static méthode

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.
Résultat System.DateTime

TruncateToSecond() public static méthode

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.
Résultat System.DateTime