utility::timespan Namespace

Caution note Caution

This topic contains information for the C++ REST SDK 1.0 (codename "Casablanca"). If you are using a later version from the Codeplex Casablanca web page, then use the local documentation at http://casablanca.codeplex.com/documentation.

namespace timespan;



seconds_to_xml_duration Function

Converts a timespan/interval in seconds to xml duration string as specified by http://www.w3.org/TR/xmlschema-2/#duration

xml_duration_to_seconds Function

Converts an xml duration to timespan/interval in seconds http://www.w3.org/TR/xmlschema-2/#duration

Header: asyncrt_utils.h

Namespace: utility