datetime Class

Warning

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 https://casablanca.codeplex.com/documentation.

class datetime;

Members

Public Typedefs

Name

Description

interval_type

Public Enumerations

Name

Description

datetime::date_format Enumeration

Defines the supported date and time string formats.

Public Constructors

Name

Description

datetime::datetime Constructor

Public Methods

Name

Description

datetime::from_days Method

datetime::from_hours Method

datetime::from_minutes Method

datetime::from_seconds Method

datetime::from_string Method

Creates datetime from a string representing time in UTC in RFC 1123 format.

datetime::is_initialized Method

datetime::to_interval Method

Returns the integral time value.

datetime::to_string Method

Returns a string representation of the datetime.

datetime::utc_now Method

Returns the current UTC time.

Public Operators

Name

Description

datetime::operator- Operator

datetime::operator!= Operator

datetime::operator+ Operator

datetime::operator== Operator

Requirements

Header: asyncrt_utils.h

Namespace: utility

See Also

Reference

utility Namespace