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
srcIClone
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
Clone()
Clones the receiver and assigns the result to *clone.
virtual IClone Clone()
Returns
Format
Format used to convert date time to string, i.e., yyyy/MM/dd.
virtual string Format { get; set; }
Returns
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
oadatedoubleYearintMonthintDayintHourintMinuteintSecondintmillisecondintDayOfWeekint
GetClassID(out Guid)
virtual void GetClassID(out Guid pClassID)
Parameters
pClassIDGuid
GetSizeMax(out _ULARGE_INTEGER)
virtual void GetSizeMax(out _ULARGE_INTEGER pcbSize)
Parameters
pcbSize_ULARGE_INTEGER
IDateFormat3_Calendar
virtual esriCalendarEnum IDateFormat3_Calendar { get; set; }
Returns
IDateFormat3_Format
virtual string IDateFormat3_Format { get; set; }
Returns
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
oadatedoubleYearintMonthintDayintHourintMinuteintSecondintmillisecondintDayOfWeekint
IDateFormat3_Locale
virtual string IDateFormat3_Locale { get; set; }
Returns
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
Returns
IPersistStream_GetClassID(out Guid)
virtual void IPersistStream_GetClassID(out Guid pClassID)
Parameters
pClassIDGuid
IsDirty()
virtual void IsDirty()
IsEqual(IClone)
Indicates if the receiver and other have the same properties.
virtual bool IsEqual(IClone other)
Parameters
otherIClone
Returns
IsHighPrecision
virtual bool IsHighPrecision { get; set; }
Returns
IsIdentical(IClone)
Indicates if the receiver and other are the same object.
virtual bool IsIdentical(IClone other)
Parameters
otherIClone
Returns
Load(IStream)
virtual void Load(IStream pstm)
Parameters
pstmIStream
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
Save(IStream, int)
virtual void Save(IStream pstm, int fClearDirty)
Parameters
SetTimeReference(ITimeReference)
Sets the time reference used to resolve time zone names.
virtual void SetTimeReference(ITimeReference pTimeRef)
Parameters
pTimeRefITimeReference
StringToValue(string)
Converts a formatted string to a numeric value.
virtual double StringToValue(string str)
Parameters
strstring
Returns
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
TimestampOffsetToString(double, short)
virtual string TimestampOffsetToString(double TimeStamp, short offsetInMinutes)
Parameters
Returns
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
Returns
ValueToString(double)
Converts a numeric value to a formatted string.
virtual string ValueToString(double Value)
Parameters
Valuedouble