C# Class System.DateTimeUtils

ファイルを表示 Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
CountRepeat ( string fmt, int p, char c ) : int
GetStandardPattern ( char format, DateTimeFormatInfo dfi, bool &useutc, bool &use_invariant ) : string
GetStandardPattern ( char format, DateTimeFormatInfo dfi, bool &useutc, bool &use_invariant, bool date_time_offset ) : string
ParseQuotedString ( string fmt, int pos, StringBuilder output ) : int
ToString ( System.DateTime dt, System.TimeSpan utc_offset, string format, DateTimeFormatInfo dfi ) : string
ToString ( DateTime dt, string format, DateTimeFormatInfo dfi ) : string
ZeroPad ( StringBuilder output, int digits, int len ) : void

Method Details

CountRepeat() public static method

public static CountRepeat ( string fmt, int p, char c ) : int
fmt string
p int
c char
return int

GetStandardPattern() public static method

public static GetStandardPattern ( char format, DateTimeFormatInfo dfi, bool &useutc, bool &use_invariant ) : string
format char
dfi DateTimeFormatInfo
useutc bool
use_invariant bool
return string

GetStandardPattern() public static method

public static GetStandardPattern ( char format, DateTimeFormatInfo dfi, bool &useutc, bool &use_invariant, bool date_time_offset ) : string
format char
dfi DateTimeFormatInfo
useutc bool
use_invariant bool
date_time_offset bool
return string

ParseQuotedString() public static method

public static ParseQuotedString ( string fmt, int pos, StringBuilder output ) : int
fmt string
pos int
output StringBuilder
return int

ToString() public static method

public static ToString ( System.DateTime dt, System.TimeSpan utc_offset, string format, DateTimeFormatInfo dfi ) : string
dt System.DateTime
utc_offset System.TimeSpan
format string
dfi DateTimeFormatInfo
return string

ToString() public static method

public static ToString ( DateTime dt, string format, DateTimeFormatInfo dfi ) : string
dt DateTime
format string
dfi DateTimeFormatInfo
return string

ZeroPad() public static method

public static ZeroPad ( StringBuilder output, int digits, int len ) : void
output StringBuilder
digits int
len int
return void