C# 클래스 Hawkeye.DateTimeExtensions

Some useful DateTime-related extension methods.
파일 보기 프로젝트 열기: odalet/Hawkeye2

공개 메소드들

메소드 설명
ToLongInvariantString ( this dateTime ) : string

Converts the date to a long invariant string representation (format = "yyyy/MM/dd hh:mm:ss").

ToLongString ( this day ) : string

Formats the specified day as a long string.

ToLongString ( this day, CultureInfo culture ) : string

Formats the specified day as a long string.

ToShortInvariantString ( this dateTime ) : string

Converts the date to a short invariant string representation (format = "yyyy/MM/dd").

ToShortString ( this day ) : string

Formats the specified day as a short string (three letters).

ToShortString ( this day, CultureInfo culture ) : string

Formats the specified day as a short string (three letters).

ToVeryLongInvariantString ( this dateTime ) : string

Converts the date to a very long invariant string representation (format = "yyyy/MM/dd hh:mm:ss.FFFFFFF").

비공개 메소드들

메소드 설명
ToFormattedString ( this day, string format, CultureInfo culture ) : string

메소드 상세

ToLongInvariantString() 공개 정적인 메소드

Converts the date to a long invariant string representation (format = "yyyy/MM/dd hh:mm:ss").
public static ToLongInvariantString ( this dateTime ) : string
dateTime this The date time to convert.
리턴 string

ToLongString() 공개 정적인 메소드

Formats the specified day as a long string.
public static ToLongString ( this day ) : string
day this The day.
리턴 string

ToLongString() 공개 정적인 메소드

Formats the specified day as a long string.
public static ToLongString ( this day, CultureInfo culture ) : string
day this The day.
culture System.Globalization.CultureInfo The culture.
리턴 string

ToShortInvariantString() 공개 정적인 메소드

Converts the date to a short invariant string representation (format = "yyyy/MM/dd").
public static ToShortInvariantString ( this dateTime ) : string
dateTime this The date time to convert.
리턴 string

ToShortString() 공개 정적인 메소드

Formats the specified day as a short string (three letters).
public static ToShortString ( this day ) : string
day this The day.
리턴 string

ToShortString() 공개 정적인 메소드

Formats the specified day as a short string (three letters).
public static ToShortString ( this day, CultureInfo culture ) : string
day this The day.
culture System.Globalization.CultureInfo The culture.
리턴 string

ToVeryLongInvariantString() 공개 정적인 메소드

Converts the date to a very long invariant string representation (format = "yyyy/MM/dd hh:mm:ss.FFFFFFF").
public static ToVeryLongInvariantString ( this dateTime ) : string
dateTime this The date time to convert.
리턴 string