Altova MapForce 2025 Enterprise Edition

This class enables you to process XML schema duration types that consist of a day and time part.

 

Constructors

Name

Description

DayTimeDuration()

Initializes a new instance of the DayTimeDuration class to an empty value.

DayTimeDuration(int days, int hours, int minutes, double seconds)

Initializes a new instance of the DayTimeDuration class to the number of days, hours, minutes, and seconds supplied as arguments.

explicit DayTimeDuration(__int64 value)

Initializes a new instance of the DayTimeDuration class to a duration that consists of as many ticks (100-nanosecond intervals) as supplied in the value argument.

 

Methods

Name

Description

int Days() const

Returns the number of days in the current DayTimeDuration instance.

int Hours() const

Returns the number of hours in the current DayTimeDuration instance.

bool IsNegative() const

Returns Boolean true if the current DayTimeDuration instance is negative.

bool IsPositive() const

Returns Boolean true if the current DayTimeDuration instance is positive.

int Minutes() const

Returns the number of minutes in the current DayTimeDuration instance.

double Seconds() const

Returns the number of seconds in the current DayTimeDuration instance.

__int64 Value() const

Returns the value (in ticks) of the current DayTimeDuration instance.

© 2018-2024 Altova GmbH