C# 클래스 Itenso.TimePeriod.TimeFormatter

상속: ITimeFormatter
파일 보기 프로젝트 열기: jwg4/date-difference 1 사용 예제들

공개 메소드들

메소드 설명
GetCalendarPeriod ( string start, string end, System.TimeSpan duration ) : string
GetCalendarPeriod ( string context, string start, string end, System.TimeSpan duration ) : string
GetCalendarPeriod ( string startContext, string endContext, string start, string end, System.TimeSpan duration ) : string
GetCollection ( int count ) : string
GetCollectionPeriod ( int count, System.DateTime start, System.DateTime end, System.TimeSpan duration ) : string
GetDateTime ( System.DateTime dateTime ) : string
GetDuration ( System.TimeSpan timeSpan ) : string
GetDuration ( System.TimeSpan timeSpan, DurationFormatType durationFormatType ) : string
GetDuration ( int years, int months, int days, int hours, int minutes, int seconds ) : string
GetInterval ( System.DateTime start, System.DateTime end, IntervalEdge startEdge, IntervalEdge endEdge, System.TimeSpan duration ) : string
GetLongTime ( System.DateTime dateTime ) : string
GetPeriod ( System.DateTime start, System.DateTime end ) : string
GetPeriod ( System.DateTime start, System.DateTime end, System.TimeSpan duration ) : string
GetShortDate ( System.DateTime dateTime ) : string
GetShortTime ( System.DateTime dateTime ) : string
TimeFormatter ( ) : System
TimeFormatter ( CultureInfo culture = null, string contextSeparator = "; ", string startEndSeparator = " - ", string durationSeparator = " | ", string dateTimeFormat = null, string shortDateFormat = null, string longTimeFormat = null, string shortTimeFormat = null, DurationFormatType durationType = DurationFormatType.Compact, bool useDurationSeconds = false, bool useIsoIntervalNotation = false ) : System

메소드 상세

GetCalendarPeriod() 공개 메소드

public GetCalendarPeriod ( string start, string end, System.TimeSpan duration ) : string
start string
end string
duration System.TimeSpan
리턴 string

GetCalendarPeriod() 공개 메소드

public GetCalendarPeriod ( string context, string start, string end, System.TimeSpan duration ) : string
context string
start string
end string
duration System.TimeSpan
리턴 string

GetCalendarPeriod() 공개 메소드

public GetCalendarPeriod ( string startContext, string endContext, string start, string end, System.TimeSpan duration ) : string
startContext string
endContext string
start string
end string
duration System.TimeSpan
리턴 string

GetCollection() 공개 메소드

public GetCollection ( int count ) : string
count int
리턴 string

GetCollectionPeriod() 공개 메소드

public GetCollectionPeriod ( int count, System.DateTime start, System.DateTime end, System.TimeSpan duration ) : string
count int
start System.DateTime
end System.DateTime
duration System.TimeSpan
리턴 string

GetDateTime() 공개 메소드

public GetDateTime ( System.DateTime dateTime ) : string
dateTime System.DateTime
리턴 string

GetDuration() 공개 메소드

public GetDuration ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
리턴 string

GetDuration() 공개 메소드

public GetDuration ( System.TimeSpan timeSpan, DurationFormatType durationFormatType ) : string
timeSpan System.TimeSpan
durationFormatType DurationFormatType
리턴 string

GetDuration() 공개 메소드

public GetDuration ( int years, int months, int days, int hours, int minutes, int seconds ) : string
years int
months int
days int
hours int
minutes int
seconds int
리턴 string

GetInterval() 공개 메소드

public GetInterval ( System.DateTime start, System.DateTime end, IntervalEdge startEdge, IntervalEdge endEdge, System.TimeSpan duration ) : string
start System.DateTime
end System.DateTime
startEdge IntervalEdge
endEdge IntervalEdge
duration System.TimeSpan
리턴 string

GetLongTime() 공개 메소드

public GetLongTime ( System.DateTime dateTime ) : string
dateTime System.DateTime
리턴 string

GetPeriod() 공개 메소드

public GetPeriod ( System.DateTime start, System.DateTime end ) : string
start System.DateTime
end System.DateTime
리턴 string

GetPeriod() 공개 메소드

public GetPeriod ( System.DateTime start, System.DateTime end, System.TimeSpan duration ) : string
start System.DateTime
end System.DateTime
duration System.TimeSpan
리턴 string

GetShortDate() 공개 메소드

public GetShortDate ( System.DateTime dateTime ) : string
dateTime System.DateTime
리턴 string

GetShortTime() 공개 메소드

public GetShortTime ( System.DateTime dateTime ) : string
dateTime System.DateTime
리턴 string

TimeFormatter() 공개 메소드

public TimeFormatter ( ) : System
리턴 System

TimeFormatter() 공개 메소드

public TimeFormatter ( CultureInfo culture = null, string contextSeparator = "; ", string startEndSeparator = " - ", string durationSeparator = " | ", string dateTimeFormat = null, string shortDateFormat = null, string longTimeFormat = null, string shortTimeFormat = null, DurationFormatType durationType = DurationFormatType.Compact, bool useDurationSeconds = false, bool useIsoIntervalNotation = false ) : System
culture System.Globalization.CultureInfo
contextSeparator string
startEndSeparator string
durationSeparator string
dateTimeFormat string
shortDateFormat string
longTimeFormat string
shortTimeFormat string
durationType DurationFormatType
useDurationSeconds bool
useIsoIntervalNotation bool
리턴 System