Show / Hide Table of Contents

Class DateElementProperties

Properties of a DateElement.

Inheritance
object
DateElementProperties
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Docs.v1.Data
Assembly: Google.Apis.Docs.v1.dll
Syntax
public class DateElementProperties : IDirectResponseSchema

Properties

DateFormat

Determines how the date part of the DateElement will be displayed in the document. If unset, the default value is DATE_FORMAT_MONTH_DAY_YEAR_ABBREVIATED, indicating the DateElement will be formatted as MMM d, y in en_US, or locale specific equivalent.

Declaration
[JsonProperty("dateFormat")]
public virtual string DateFormat { get; set; }
Property Value
Type Description
string

DisplayText

Output only. Indicates how the DateElement is displayed in the document.

Declaration
[JsonProperty("displayText")]
public virtual string DisplayText { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Locale

The locale of the document, as defined by the Unicode Common Locale Data Repository (CLDR) project. For example, en_US. If unset, the default locale is en_US.

Declaration
[JsonProperty("locale")]
public virtual string Locale { get; set; }
Property Value
Type Description
string

TimeFormat

Determines how the time part of the DateElement will be displayed in the document. If unset, the default value is TIME_FORMAT_DISABLED, indicating no time should be shown.

Declaration
[JsonProperty("timeFormat")]
public virtual string TimeFormat { get; set; }
Property Value
Type Description
string

TimeZoneId

The time zone of the DateElement, as defined by the Unicode Common Locale Data Repository (CLDR) project. For example, America/New York. If unset, the default time zone is etc/UTC.

Declaration
[JsonProperty("timeZoneId")]
public virtual string TimeZoneId { get; set; }
Property Value
Type Description
string

Timestamp

object representation of TimestampRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimestampDateTimeOffset instead.")]
public virtual object Timestamp { get; set; }
Property Value
Type Description
object

TimestampDateTimeOffset

DateTimeOffset representation of TimestampRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimestampDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

TimestampRaw

The point in time to represent, in seconds and nanoseconds since Unix epoch: January 1, 1970 at midnight UTC. Timestamp is expected to be in UTC. If time_zone_id is set, the timestamp is adjusted according to the time zone. For example, a timestamp of 18000 with a date format of DATE_FORMAT_ISO8601 and time format of TIME_FORMAT_HOUR_MINUTE would be displayed as 1970-01-01 5:00 AM. A timestamp of 18000 with date format of DATE_FORMAT_8SO8601, time format of TIME_FORMAT_HOUR_MINUTE, and time zone set to America/New_York will instead be 1970-01-01 12:00 AM.

Declaration
[JsonProperty("timestamp")]
public virtual string TimestampRaw { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX