com.esri.arcgis.system
Interface ITime2

All Superinterfaces:
ITime, Serializable
All Known Implementing Classes:
Time

public interface ITime2
extends ITime, Serializable

Provides access to members that control the Time.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 short getDayOfWeek()
          The day number of the week, starting with 1 for Sunday.
 short getDayOfYear()
          The day number of the year, starting with 1 for the first day of the year.
 short getWeekOfMonth(short startDayOfWeek)
          The week number of the month, starting with 1 for the first week of the month.
 short getWeekOfYear(short startDayOfWeek)
          The week number of the year, starting with 1 for first week of the year.
 
Methods inherited from interface com.esri.arcgis.system.ITime
compare, getDay, getHour, getMinute, getMonth, getNanoseconds, getSecond, getYear, queryDayFraction, queryGregorianTime, queryIntegerTime, queryJulianDayNumber, queryNanosecondsSinceMidnight, queryOleTime, queryTicks, queryTimeString, queryTimeStringCurrentLocale, queryTimeStringCustom, queryXMLTimeString, setDay, setDayFraction, setFromCurrentLocalTime, setFromCurrentUtcTime, setFromGregorianTime, setFromIntegerTime, setFromObject, setFromOleTime, setFromTicks, setFromTimeString, setFromTimeStringCurrentLocale, setFromTimeStringCustom, setFromXMLTimeString, setHour, setJulianDayNumber, setMinute, setMonth, setNanoseconds, setNanosecondsSinceMidnight, setSecond, setYear, snapToEndOfMonth, subtractTime, toLocal, toUTC
 

Method Detail

getDayOfWeek

short getDayOfWeek()
                   throws IOException,
                          AutomationException
The day number of the week, starting with 1 for Sunday.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The dayNumber
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDayOfYear

short getDayOfYear()
                   throws IOException,
                          AutomationException
The day number of the year, starting with 1 for the first day of the year.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The dayNumber
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWeekOfMonth

short getWeekOfMonth(short startDayOfWeek)
                     throws IOException,
                            AutomationException
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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
startDayOfWeek - The startDayOfWeek (in)
Returns:
The weekNumber
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWeekOfYear

short getWeekOfYear(short startDayOfWeek)
                    throws IOException,
                           AutomationException
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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
startDayOfWeek - The startDayOfWeek (in)
Returns:
The weekNumber
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.