示例#1
0
void http_headers::set_date(const utility::datetime& date)
{
    add(http::header_names::date, date.to_string(utility::datetime::RFC_1123));
}
示例#2
0
void http_headers::set_date(const utility::datetime& date)
{
    m_headers[http::header_names::date] = date.to_string(utility::datetime::RFC_1123);
}
 utility::string_t convert_datetime_if_initialized(utility::datetime value)
 {
     return value.is_initialized() ? core::truncate_fractional_seconds(value).to_string(utility::datetime::ISO_8601) : utility::string_t();
 }
示例#4
0
utility::string_t ApiClient::parameterToString(const utility::datetime &value)
{
    return utility::conversions::to_string_t(value.to_string(utility::datetime::ISO_8601));
}