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>IBufferMessageIMessage
- Inherited Members
Constructors
DateTimeOffset()
public DateTimeOffset()
DateTimeOffset(DateTimeOffset)
public DateTimeOffset(DateTimeOffset other)
Parameters
otherDateTimeOffset
Fields
DateTimeComponentsFieldNumber
Field number for the "date_time_components" field.
public const int DateTimeComponentsFieldNumber = 2
Field Value
LocalEpochMsFieldNumber
Field number for the "local_epoch_ms" field.
public const int LocalEpochMsFieldNumber = 1
Field Value
UtcOffsetFieldNumber
Field number for the "utc_offset" field.
public const int UtcOffsetFieldNumber = 8
Field Value
Properties
DateTimeComponents
Time-zone-independent civil date time represented as individual components.
public DateTimeComponents DateTimeComponents { get; set; }
Property Value
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
HasUtcOffset
Gets whether the "utc_offset" field is set
public bool HasUtcOffset { get; }
Property Value
LocalDateTimeCase
public DateTimeOffset.LocalDateTimeOneofCase LocalDateTimeCase { get; }
Property Value
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
Parser
public static MessageParser<DateTimeOffset> Parser { get; }
Property Value
- MessageParser<DateTimeOffset>
TimeOffsetCase
public DateTimeOffset.TimeOffsetOneofCase TimeOffsetCase { get; }
Property Value
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
Methods
CalculateSize()
public int CalculateSize()
Returns
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
Equals(DateTimeOffset)
public bool Equals(DateTimeOffset other)
Parameters
otherDateTimeOffset
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(DateTimeOffset)
public void MergeFrom(DateTimeOffset other)
Parameters
otherDateTimeOffset
MergeFrom(CodedInputStream)
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStream