Interface ITime2

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to members that control the Time.

[Guid("30EAE8E1-26B2-4E57-A3F2-8AE7C7DB2455")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITime2 : ITime

Properties

Day

short Day { get; set; }

Property Value

short

DayOfWeek

The day number of the week, starting with 1 for Sunday.

short DayOfWeek { get; }

Property Value

short

DayOfYear

The day number of the year, starting with 1 for the first day of the year.

short DayOfYear { get; }

Property Value

short

Hour

short Hour { get; set; }

Property Value

short

Minute

short Minute { get; set; }

Property Value

short

Month

short Month { get; set; }

Property Value

short

Nanoseconds

int Nanoseconds { get; set; }

Property Value

int

Second

short Second { get; set; }

Property Value

short

WeekOfMonth[short]

The week number of the month, starting with 1 for the first week of the month. Use startDayOfWeek = 1 to specify that weeks start on Sunday, and 2 on Monday.

short WeekOfMonth[short startDayOfWeek] { get; }

Parameters

startDayOfWeek short

Property Value

short

WeekOfYear[short]

The week number of the year, starting with 1 for first week of the year. Use startDayOfWeek = 1 to specify that weeks start on Sunday, and 2 on Monday.

short WeekOfYear[short startDayOfWeek] { get; }

Parameters

startDayOfWeek short

Property Value

short

Year

short Year { get; set; }

Property Value

short

Methods

Compare(ITime)

int Compare(ITime otherTime)

Parameters

otherTime ITime

Returns

int

QueryDayFraction()

double QueryDayFraction()

Returns

double

QueryGregorianTime()

WKSDateTime QueryGregorianTime()

Returns

WKSDateTime

QueryIntegerTime(esriIntegerTimeFormat)

long QueryIntegerTime(esriIntegerTimeFormat integerTimeFormat)

Parameters

integerTimeFormat esriIntegerTimeFormat

Returns

long

QueryJulianDayNumber()

int QueryJulianDayNumber()

Returns

int

QueryNanosecondsSinceMidnight()

long QueryNanosecondsSinceMidnight()

Returns

long

QueryOleTime()

DateTime QueryOleTime()

Returns

DateTime

QueryTicks()

long QueryTicks()

Returns

long

QueryTimeString(esriTimeStringFormat)

string QueryTimeString(esriTimeStringFormat timeStringFormat)

Parameters

timeStringFormat esriTimeStringFormat

Returns

string

QueryTimeStringCurrentLocale(esriTimeLocaleFormat)

string QueryTimeStringCurrentLocale(esriTimeLocaleFormat timeLocaleFormat)

Parameters

timeLocaleFormat esriTimeLocaleFormat

Returns

string

QueryTimeStringCustom(string, int, string, string)

string QueryTimeStringCustom(string timeStringFormat, int LocaleID, string amSymbol, string pmSymbol)

Parameters

timeStringFormat string
LocaleID int
amSymbol string
pmSymbol string

Returns

string

QueryXMLTimeString(ITimeReference)

string QueryXMLTimeString(ITimeReference TimeReference)

Parameters

TimeReference ITimeReference

Returns

string

SetDayFraction(double)

void SetDayFraction(double dayFraction)

Parameters

dayFraction double

SetFromCurrentLocalTime()

void SetFromCurrentLocalTime()

SetFromCurrentUtcTime()

void SetFromCurrentUtcTime()

SetFromGregorianTime(ref WKSDateTime)

void SetFromGregorianTime(ref WKSDateTime gregorianTime)

Parameters

gregorianTime WKSDateTime

SetFromIntegerTime(esriIntegerTimeFormat, long)

void SetFromIntegerTime(esriIntegerTimeFormat integerTimeFormat, long integerTime)

Parameters

integerTimeFormat esriIntegerTimeFormat
integerTime long

SetFromObject(object)

void SetFromObject(object Object)

Parameters

Object object

SetFromOleTime(DateTime)

void SetFromOleTime(DateTime oleTime)

Parameters

oleTime DateTime

SetFromTicks(long)

void SetFromTicks(long ticks)

Parameters

ticks long

SetFromTimeString(esriTimeStringFormat, string)

void SetFromTimeString(esriTimeStringFormat timeStringFormat, string timeString)

Parameters

timeStringFormat esriTimeStringFormat
timeString string

SetFromTimeStringCurrentLocale(esriTimeLocaleFormat, string)

void SetFromTimeStringCurrentLocale(esriTimeLocaleFormat timeLocaleFormat, string timeString)

Parameters

timeLocaleFormat esriTimeLocaleFormat
timeString string

SetFromTimeStringCustom(string, int, string, string, string)

void SetFromTimeStringCustom(string timeStringFormat, int LocaleID, string amSymbol, string pmSymbol, string timeString)

Parameters

timeStringFormat string
LocaleID int
amSymbol string
pmSymbol string
timeString string

SetFromXMLTimeString(string)

int SetFromXMLTimeString(string xmlTimeString)

Parameters

xmlTimeString string

Returns

int

SetJulianDayNumber(int)

void SetJulianDayNumber(int julianDayNumber)

Parameters

julianDayNumber int

SetNanosecondsSinceMidnight(long)

void SetNanosecondsSinceMidnight(long nanosecondsSinceMidnight)

Parameters

nanosecondsSinceMidnight long

SnapToEndOfMonth()

void SnapToEndOfMonth()

SubtractTime(ITime)

ITimeDuration SubtractTime(ITime Time)

Parameters

Time ITime

Returns

ITimeDuration

ToLocal()

void ToLocal()

ToUTC()

void ToUTC()