C# 클래스 StringFormatEx.Plugins.TimestringPlugin

상속: IStringFormatterPlugin
파일 보기 프로젝트 열기: qstarin/StringFormatEx 1 사용 예제들

공개 메소드들

메소드 설명
CreateDefaultFormattingOptions ( ) : FormattingOptions
GetFormatExtensions ( ) : IEnumerable>
GetSourceExtensions ( ) : IEnumerable>
TimestringPlugin ( ) : System
TimestringPlugin ( FormattingOptions formattingOptions ) : System
ToTimeString ( System.TimeSpan FromTime ) : string
ToTimeString ( System.TimeSpan FromTime, FormattingOptions formattingOptions ) : string

Turns a TimeSpan into a human-readable text. For example: "31.23:59:00.555" = "31 days 23 hours 59 minutes 0 seconds 555 milliseconds"

ToTimeString ( System.TimeSpan FromTime, string formatOptions ) : string
ToTimeString ( System.TimeSpan FromTime, string formatOptions, FormattingOptions defaultFormattingOptions ) : string

Converts the Timespan into a string, using the format options as a shortcut. Example: ts$ = TimeString(Now.TimeOfDay, "[(smallest)w|d|h|m|s|ms] [(largest)w|d|h|m|s|ms] [auto|short|fill|full] [abbr|noabbr]")

The format options are case insensitive.

비공개 메소드들

메소드 설명
DoTimeStringFormat ( object sender, ExtendFormatEventArgs e ) : void

메소드 상세

CreateDefaultFormattingOptions() 공개 정적인 메소드

public static CreateDefaultFormattingOptions ( ) : FormattingOptions
리턴 FormattingOptions

GetFormatExtensions() 공개 메소드

public GetFormatExtensions ( ) : IEnumerable>
리턴 IEnumerable>

GetSourceExtensions() 공개 메소드

public GetSourceExtensions ( ) : IEnumerable>
리턴 IEnumerable>

TimestringPlugin() 공개 메소드

public TimestringPlugin ( ) : System
리턴 System

TimestringPlugin() 공개 메소드

public TimestringPlugin ( FormattingOptions formattingOptions ) : System
formattingOptions FormattingOptions
리턴 System

ToTimeString() 공개 정적인 메소드

public static ToTimeString ( System.TimeSpan FromTime ) : string
FromTime System.TimeSpan
리턴 string

ToTimeString() 공개 정적인 메소드

Turns a TimeSpan into a human-readable text. For example: "31.23:59:00.555" = "31 days 23 hours 59 minutes 0 seconds 555 milliseconds"
public static ToTimeString ( System.TimeSpan FromTime, FormattingOptions formattingOptions ) : string
FromTime System.TimeSpan
formattingOptions FormattingOptions
리턴 string

ToTimeString() 공개 정적인 메소드

public static ToTimeString ( System.TimeSpan FromTime, string formatOptions ) : string
FromTime System.TimeSpan
formatOptions string
리턴 string

ToTimeString() 공개 정적인 메소드

Converts the Timespan into a string, using the format options as a shortcut. Example: ts$ = TimeString(Now.TimeOfDay, "[(smallest)w|d|h|m|s|ms] [(largest)w|d|h|m|s|ms] [auto|short|fill|full] [abbr|noabbr]")
The format options are case insensitive.
public static ToTimeString ( System.TimeSpan FromTime, string formatOptions, FormattingOptions defaultFormattingOptions ) : string
FromTime System.TimeSpan
formatOptions string A list of flags options. /// Syntax: /// [(smallest)w|d|h|m|s|ms] [(largest)w|d|h|m|s|ms] [auto|short|fill|full] [abbr|noabbr] [less|noless] ///
defaultFormattingOptions FormattingOptions
리턴 string