public final class SystemTime extends Object implements Comparable<SystemTime>, Serializable
A class which represents the last write time for a registry key. This class is capable of tracking the year, month, day of the week, day of the month, hour, minute, second, and milliseconds for when the key was last written to.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SystemTime other)
Compares one
SystemTime to another. |
boolean |
equals(Object o)
Tests for equality with another
Object. |
int |
getDay()
Retrieves the day of the month for when the key was last written to.
|
int |
getDayOfWeek()
Retrieves the day of the week for when the key was last written to.
|
int |
getHour()
Retrieves the hour for when the key was last written to.
|
int |
getMilliseconds()
Retrieves the milliseconds for when the key was last written to.
|
int |
getMinute()
Retrieves the minute for when the key was last written to.
|
int |
getMonth()
Retrieves the month for when the key was last written to.
|
int |
getSeconds()
Retrieves the seconds for when the key was last written to.
|
int |
getYear()
Retrieves the year for when the key was last written to.
|
int |
hashCode()
Generates a hash code for
this structure. |
String |
toString()
Retrieve a
String representation of this time. |
public int getYear()
public int getMonth()
Value Meaning
------------------
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
12 December
public int getDayOfWeek()
Value Meaning
------------------
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
public int getDay()
public int getHour()
public int getMinute()
public int getSeconds()
public int getMilliseconds()
public boolean equals(Object o)
public int hashCode()
this structure.public String toString()
String representation of this time.
The format is Month/Day/Year - Hour:Minute (AM or PM).public int compareTo(SystemTime other)
SystemTime to another.compareTo in interface Comparable<SystemTime>other - The SystemTime to compare with this.this is smaller than, equal to
or greater than other respectively.Copyright © 2011, Yinon Michaeli. All rights reserved.