메소드 | 설명 | |
---|---|---|
Normalize ( ) : |
Normalize year-month part and day-time part so that month < 12, hour < 24, minute < 60, and second < 60.
|
|
ToString ( ) : string |
Return the string representation of this Xsd duration.
|
|
ToTimeSpan ( ) : System.TimeSpan |
Internal helper method that converts an Xsd duration to a TimeSpan value. This code uses the estimate that there are 365 days in the year and 30 days in a month.
|
|
XsdDuration ( System.TimeSpan timeSpan ) : System |
Construct an XsdDuration from a TimeSpan value.
|
|
XsdDuration ( bool isNegative, int years, int months, int days, int hours, int minutes, int seconds, int nanoseconds ) : System |
Construct an XsdDuration from component parts.
|
|
XsdDuration ( string s ) : System |
Constructs an XsdDuration from a string in the xsd:duration format. Components are stored with loss of fidelity (except in the case of overflow).
|
|
XsdDuration ( string s, DurationType durationType ) : System |
Constructs an XsdDuration from a string in the xsd:duration format. Components are stored without loss of fidelity (except in the case of overflow).
|
메소드 | 설명 | |
---|---|---|
ToString ( DurationType durationType ) : string |
Return the string representation according to xsd:duration rules, xdt:dayTimeDuration rules, or xdt:yearMonthDuration rules.
|
|
ToTimeSpan ( DurationType durationType ) : System.TimeSpan |
Internal helper method that converts an Xsd duration to a TimeSpan value. This code uses the estimate that there are 365 days in the year and 30 days in a month.
|
|
TryParse ( string s, DurationType durationType, |
||
TryParse ( string s, |
||
TryParseDigits ( string s, int &offset, bool eatDigits, int &result, int &numDigits ) : string | ||
TryToTimeSpan ( DurationType durationType, System.TimeSpan &result ) : |
||
TryToTimeSpan ( System.TimeSpan &result ) : |
||
XsdDuration ( System.TimeSpan timeSpan, DurationType durationType ) : System |
Construct an XsdDuration from a TimeSpan value that represents an xsd:duration, an xdt:dayTimeDuration, or an xdt:yearMonthDuration.
|
public XsdDuration ( System.TimeSpan timeSpan ) : System | ||
timeSpan | System.TimeSpan | |
리턴 | System |
public XsdDuration ( bool isNegative, int years, int months, int days, int hours, int minutes, int seconds, int nanoseconds ) : System | ||
isNegative | bool | |
years | int | |
months | int | |
days | int | |
hours | int | |
minutes | int | |
seconds | int | |
nanoseconds | int | |
리턴 | System |
public XsdDuration ( string s, DurationType durationType ) : System | ||
s | string | |
durationType | DurationType | |
리턴 | System |