Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

matlab.net.http.field.DateField class

Package: matlab.net.http.field
Superclasses: matlab.net.http.HeaderField, matlab.net.http.field.HTTPDateField

HTTP Date header field

Description

A DateField object represents an HTTP Date header field. A Date field is an optional field that represents the date and time a request or a response message was originally sent. If you do not specify a Date field in a request message, then MATLAB® inserts one when you send it.

Construction

obj = matlab.net.http.field.DateField(value) creates a Date header field with the Value property set to value.

obj = matlab.net.http.field.DateField sets the field value to the current date and time.

Properties

expand all

Header field name, specified as 'Date'.

Date and time, specified as a datetime object or a string in a valid HTTP date format. The default is the current date and time. Value must not be in the future. If the time zone is missing, the local time zone is assumed. The datetime Format property is ignored.

Methods

convert

Value of Date field as array of MATLAB datetime objects. Interprets field as a comma-separated list of quoted HTTP dates.

Introduced in R2016b

Was this topic helpful?