C# 클래스 gov.va.medora.utils.DateUtils

파일 보기 프로젝트 열기: OSEHRA/mdo

공개 메소드들

메소드 설명
CheckDateRange ( string fromDate, string toDate ) : void
IsoDateStringToDateTime ( string dateString ) : System.DateTime

Changes yyyyMMdd.HHmmss formatted string to date.

pads missing least significant digits (e.g. seconds or milliseconds) with 0s.

is30DayMonth ( int month ) : bool
isLeapYear ( int year ) : bool
isValidDay ( int year, int month, int dy ) : bool
isValidMonth ( int month ) : bool
isWellFormedDatePart ( string dt ) : bool
isWellFormedTimePart ( string dt ) : bool
isWellFormedUtcDateTime ( string dt ) : bool
toVistaTimestampString ( System.DateTime dateTime ) : string
trimSeconds ( string timestamp ) : string
trimTime ( string timestamp ) : string

Removes the time portion (if present) of a date/time string of expected format.

NOTE: this function doesn't check for well-formatted-ness of timestamp argument. If you need to check, use the isWellFormed...() functions

zeroSeconds ( string timestamp ) : string

비공개 메소드들

메소드 설명
subtractSecond ( string timestamp ) : string

메소드 상세

CheckDateRange() 공개 정적인 메소드

public static CheckDateRange ( string fromDate, string toDate ) : void
fromDate string
toDate string
리턴 void

IsoDateStringToDateTime() 공개 정적인 메소드

Changes yyyyMMdd.HHmmss formatted string to date.
pads missing least significant digits (e.g. seconds or milliseconds) with 0s.
public static IsoDateStringToDateTime ( string dateString ) : System.DateTime
dateString string
리턴 System.DateTime

is30DayMonth() 공개 정적인 메소드

public static is30DayMonth ( int month ) : bool
month int
리턴 bool

isLeapYear() 공개 정적인 메소드

public static isLeapYear ( int year ) : bool
year int
리턴 bool

isValidDay() 공개 정적인 메소드

public static isValidDay ( int year, int month, int dy ) : bool
year int
month int
dy int
리턴 bool

isValidMonth() 공개 정적인 메소드

public static isValidMonth ( int month ) : bool
month int
리턴 bool

isWellFormedDatePart() 공개 정적인 메소드

public static isWellFormedDatePart ( string dt ) : bool
dt string
리턴 bool

isWellFormedTimePart() 공개 정적인 메소드

public static isWellFormedTimePart ( string dt ) : bool
dt string
리턴 bool

isWellFormedUtcDateTime() 공개 정적인 메소드

public static isWellFormedUtcDateTime ( string dt ) : bool
dt string
리턴 bool

toVistaTimestampString() 공개 정적인 메소드

public static toVistaTimestampString ( System.DateTime dateTime ) : string
dateTime System.DateTime
리턴 string

trimSeconds() 공개 정적인 메소드

public static trimSeconds ( string timestamp ) : string
timestamp string
리턴 string

trimTime() 공개 정적인 메소드

Removes the time portion (if present) of a date/time string of expected format.
NOTE: this function doesn't check for well-formatted-ness of timestamp argument. If you need to check, use the isWellFormed...() functions
public static trimTime ( string timestamp ) : string
timestamp string yyyyMMdd.HHmmss or yyyyMMdd
리턴 string

zeroSeconds() 공개 정적인 메소드

public static zeroSeconds ( string timestamp ) : string
timestamp string
리턴 string