Class DateFormatClass

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll
[Guid("F35B48F5-0414-4157-953A-6727DC0987DD")]
[ClassInterface(ClassInterfaceType.None)]
public class DateFormatClass : DateFormat, INumberFormat, IDateFormat3, IDateFormat2, IDateFormat, IClone, IPersistStream, IPersist
Inheritance
DateFormatClass
Implements
Inherited Members

Constructors

DateFormatClass()

public DateFormatClass()

Explicit Interface Implementations

Assign(IClone)

Assigns the properties of src to the receiver.

virtual void Assign(IClone src)

Parameters

src IClone

Calendar

Calendar used for date time formating. If not set, the default calendar for the locale will be used.

virtual esriCalendarEnum Calendar { get; set; }

Returns

esriCalendarEnum

Clone()

Clones the receiver and assigns the result to *clone.

virtual IClone Clone()

Returns

IClone

Format

Format used to convert date time to string, i.e., yyyy/MM/dd.

virtual string Format { get; set; }

Returns

string

FromOADate(double, out int, out int, out int, out int, out int, out int, out int, out int)

Convert OADate to date time with the milliseconds preserved. Day of week is an integer between 0 and 6, where 0 indicates Sunday and 6 indicates Saturday.

virtual void FromOADate(double oadate, out int Year, out int Month, out int Day, out int Hour, out int Minute, out int Second, out int millisecond, out int DayOfWeek)

Parameters

oadate double
Year int
Month int
Day int
Hour int
Minute int
Second int
millisecond int
DayOfWeek int

GetClassID(out Guid)

virtual void GetClassID(out Guid pClassID)

Parameters

pClassID Guid

GetSizeMax(out _ULARGE_INTEGER)

virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)

Parameters

pcbSize _ULARGE_INTEGER

IDateFormat3_Calendar

virtual esriCalendarEnum IDateFormat3_Calendar { get; set; }

Returns

esriCalendarEnum

IDateFormat3_Format

virtual string IDateFormat3_Format { get; set; }

Returns

string

IDateFormat3_FromOADate(double, out int, out int, out int, out int, out int, out int, out int, out int)

virtual void IDateFormat3_FromOADate(double oadate, out int Year, out int Month, out int Day, out int Hour, out int Minute, out int Second, out int millisecond, out int DayOfWeek)

Parameters

oadate double
Year int
Month int
Day int
Hour int
Minute int
Second int
millisecond int
DayOfWeek int

IDateFormat3_Locale

virtual string IDateFormat3_Locale { get; set; }

Returns

string

IDateFormat3_ToOADate(int, int, int, int, int, int, int)

virtual double IDateFormat3_ToOADate(int Year, int Month, int Day, int Hour, int Minute, int Second, int millisecond)

Parameters

Year int
Month int
Day int
Hour int
Minute int
Second int
millisecond int

Returns

double

IPersistStream_GetClassID(out Guid)

virtual void IPersistStream_GetClassID(out Guid pClassID)

Parameters

pClassID Guid

IsDirty()

virtual void IsDirty()

IsEqual(IClone)

Indicates if the receiver and other have the same properties.

virtual bool IsEqual(IClone other)

Parameters

other IClone

Returns

bool

IsHighPrecision

virtual bool IsHighPrecision { get; set; }

Returns

bool

IsIdentical(IClone)

Indicates if the receiver and other are the same object.

virtual bool IsIdentical(IClone other)

Parameters

other IClone

Returns

bool

Load(IStream)

virtual void Load(IStream pstm)

Parameters

pstm IStream

Locale

Locale used for date time formating, i.e., en-US, zh-CN, ja-JP. If not set, the user default locale will be used.

virtual string Locale { get; set; }

Returns

string

Save(IStream, int)

virtual void Save(IStream pstm, int fClearDirty)

Parameters

pstm IStream
fClearDirty int

SetTimeReference(ITimeReference)

Sets the time reference used to resolve time zone names.

virtual void SetTimeReference(ITimeReference pTimeRef)

Parameters

pTimeRef ITimeReference

StringToValue(string)

Converts a formatted string to a numeric value.

virtual double StringToValue(string str)

Parameters

str string

Returns

double

Remarks

When using the StringToValue method to obtain a ValueToString argument value, the properties in the associated interface must be set the same as they were when the ValueToString method was used. This applies in cases where ValueToString may perform a numerical conversion (in the IAngleFormat, IFractionFormat, IPercentageFormat, and IRateFormat interfaces).

TimeOnly

virtual bool TimeOnly { get; set; }

Returns

bool

TimestampOffsetToString(double, short)

virtual string TimestampOffsetToString(double TimeStamp, short offsetInMinutes)

Parameters

TimeStamp double
offsetInMinutes short

Returns

string

ToOADate(int, int, int, int, int, int, int)

Convert date time to OADate with the milliseconds preserved.

virtual double ToOADate(int Year, int Month, int Day, int Hour, int Minute, int Second, int millisecond)

Parameters

Year int
Month int
Day int
Hour int
Minute int
Second int
millisecond int

Returns

double

ValueToString(double)

Converts a numeric value to a formatted string.

virtual string ValueToString(double Value)

Parameters

Value double

Returns

string