altova::YearMonthDuration
This class enables you to process XML schema duration types that consist of a year and month part.
Constructors
Name | Description |
---|---|
YearMonthDuration() | Initializes a new instance of the YearMonthDuration class to an empty value. |
YearMonthDuration(int years, int months) | Initializes a new instance of the YearMonthDuration class to the number of years and months supplied in the years and months arguments. |
explicit YearMonthDuration(int value) | Initializes a new instance of the YearMonthDuration class to a duration that consists of as many ticks (100-nanosecond intervals) as supplied in the value argument. |
Methods
Name | Description |
---|---|
bool IsNegative() const | Returns Boolean true if the current YearMonthDuration instance is negative. |
bool IsPositive() const | Returns Boolean true if the current YearMonthDuration instance is positive. |
int Months() const | Returns the number of months in the current YearMonthDuration instance. |
int Value() const | Returns the value (in ticks) of the current YearMonthDuration instance. |
int Years() | Returns the number of years in the current YearMonthDuration instance. |