C# 클래스 EqualityComparer.DateTimeExtensions

Date time extensions.
7/19/2011.
파일 보기 프로젝트 열기: Iristyle/EqualityComparer

공개 메소드들

메소드 설명
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