Class DateTimeOffset

Namespace
EsriPBuffer.Graph
Assembly
ESRI.Server.SOESupport.dll

DateTimeOffset represents a civil time encoded as components of date, time & time offset. The date is relative to the proleptic Gregorian calendar.

public sealed class DateTimeOffset : IMessage<DateTimeOffset>, IEquatable<DateTimeOffset>, IDeepCloneable<DateTimeOffset>, IBufferMessage, IMessage
Inheritance
DateTimeOffset
Implements
IMessage<DateTimeOffset>
IDeepCloneable<DateTimeOffset>
IBufferMessage
IMessage
Inherited Members

Constructors

DateTimeOffset()

public DateTimeOffset()

DateTimeOffset(DateTimeOffset)

public DateTimeOffset(DateTimeOffset other)

Parameters

other DateTimeOffset

Fields

DateTimeComponentsFieldNumber

Field number for the "date_time_components" field.

public const int DateTimeComponentsFieldNumber = 2

Field Value

int

LocalEpochMsFieldNumber

Field number for the "local_epoch_ms" field.

public const int LocalEpochMsFieldNumber = 1

Field Value

int

UtcOffsetFieldNumber

Field number for the "utc_offset" field.

public const int UtcOffsetFieldNumber = 8

Field Value

int

Properties

DateTimeComponents

Time-zone-independent civil date time represented as individual components.

public DateTimeComponents DateTimeComponents { get; set; }

Property Value

DateTimeComponents

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasLocalEpochMs

Gets whether the "local_epoch_ms" field is set

public bool HasLocalEpochMs { get; }

Property Value

bool

HasUtcOffset

Gets whether the "utc_offset" field is set

public bool HasUtcOffset { get; }

Property Value

bool

LocalDateTimeCase

public DateTimeOffset.LocalDateTimeOneofCase LocalDateTimeCase { get; }

Property Value

DateTimeOffset.LocalDateTimeOneofCase

LocalEpochMs

A time-zone-independent representation of time with exactly 24-hour days, 60-minute hours, and 60-second minutes. Represents a count of milliseconds relative to midnight on January 1, 1970, ignoring any timezone or offset component.

The local_epoch_ms range is restricted to 0000-01-01T00:00:00.000 (-62167219200000) to 9999-12:31T23:59:59.999 (253402300799999). This restriction is in place to support conversion to and from ISO8601 date format strings.

All minutes are 60 seconds long. The leap second is spread equally over the last 1000 seconds of the day, maintaining the appearance of exactly 86,400 seconds per day.

public long LocalEpochMs { get; set; }

Property Value

long

Parser

public static MessageParser<DateTimeOffset> Parser { get; }

Property Value

MessageParser<DateTimeOffset>

TimeOffsetCase

public DateTimeOffset.TimeOffsetOneofCase TimeOffsetCase { get; }

Property Value

DateTimeOffset.TimeOffsetOneofCase

UtcOffset

UTC offset in whole seconds between -18 hours and +18 hours. A UTC offset of -8:00 would be represented as -28800.

public int UtcOffset { get; set; }

Property Value

int

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearLocalDateTime()

public void ClearLocalDateTime()

ClearLocalEpochMs()

Clears the value of the oneof if it's currently set to "local_epoch_ms"

public void ClearLocalEpochMs()

ClearTimeOffset()

public void ClearTimeOffset()

ClearUtcOffset()

Clears the value of the oneof if it's currently set to "utc_offset"

public void ClearUtcOffset()

Clone()

public DateTimeOffset Clone()

Returns

DateTimeOffset

Equals(DateTimeOffset)

public bool Equals(DateTimeOffset other)

Parameters

other DateTimeOffset

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(DateTimeOffset)

public void MergeFrom(DateTimeOffset other)

Parameters

other DateTimeOffset

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream