Share via


Overview | Fields | This Package | All Packages

OverviewFieldsThis PackageAll Packages

Time Methods

Constructors Description
Time Creates a Time object.
Methods Description
add Creates a new Time object that represents the number of time units (100 nanoseconds) after the time that this Time object represents. 
addDays Creates a new Time object that represents the number of days after the time that this Time object represents.
addHours Creates a new Time object that represents the number of hours after the time that this Time object represents.
addMillis Creates a new Time object that represents the number of milliseconds after the time that this Time object represents.
addMinutes Creates a new Time object that represents the number of minutes after the time that this Time object represents.
addMonths Creates a new Time object that represents the number of months after the time that this Time object represents.
addSeconds Creates a new Time object that represents the number of seconds after the time that this Time object represents.
addYears Creates a new Time object that represents the number of years after the time that this Time object represents.
compare Compares two Time objects.
compareTo Compares this Time object to another Time object.
equals Tests for equality.
formatLongDate Retrieves the Time object as a String using the long date format.
formatLongTime Retrieves the Time object as a String using the long time format.
formatShortDate Retrieves the Time object as a String using the short date format.
formatShortTime Retrieves the Time object as a String using the short time format.
fromFileTime Creates a Time object based on the specified value.
getDate Creates a Time object that represents the same date as this Time object but without a time of day specified.
getDay Retrieves the day of the month that this Time object represents.
getDayOfWeek Retrieves the day of the week that this Time object represents.
getDayOfYear Retrieves the day of the year that this Time object represents.
getHour Retrieves the hour of the day that this Time object represents.
getMillis Retrieves the milliseconds of the second that this Time object represents.
getMinute Retrieves the minutes of the hour that this Time object represents.
getMonth Retrieves the month of the year that this Time object represents.
getSecond Retrieves the seconds of the minute that this Time object represents.
getTimeOfDay Creates a Time object that represents the same time of day as this Time object, but without a date specified.
getYear Retrieves the year that this Time object represents.
save Stores the Time object in persisted storage.
setDate Creates a new Time object that contains the date from another Time object and the time of day from this Time object.
setTimeOfDay Creates a new Time object that contains the date from this Time object and the time of day from another Time object.
toDouble Retrieves the Time object as an OLE-formatted double value.
toFileTime Retrieves the Time object as a Win32 FILETIME value.
toLocalTime Creates a Time object that represents this Time object in the user's local time zone.
toLong Retrieves the number of time units (100 nanoseconds) units that are stored in this Time object.
toString Retrieves this Time object as a String object.
toSystemTime Retrieves this Time object as a Win32 SYSTEMTIME structure.
toUniversalTime Creates a new Time object that represents this Time object in the coordinated universal time (UTC) time zone.
toVariant Retrieves this Time object as a com.ms.com.Variant object.