net.java.slee.resources.smpp.util
Interface SMPPDate

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
AbsoluteSMPPDate, RelativeSMPPDate

public interface SMPPDate
extends java.io.Serializable


Method Summary
 int getDay()
          Get the day part of this time format.
 int getHour()
          Get the hour part of this time format.
 int getMinute()
          Get the minute part of this time format.
 int getMonth()
          Get the month part of this time format.
 int getSecond()
          Get the second part of this time format.
 char getSign()
          Get the timezone offset modifier character.
 int getTenth()
          Get the tenths of a second part of this time format.
 int getUtcOffset()
          Get the UTC offset part of this time format.
 int getYear()
          Get the year part of this time format.
 boolean isAbsolute()
          Determine if this date object represents an absolute time.
 boolean isRelative()
          Determine if this date object represents a relative time.
 

Method Detail

getYear

int getYear()
Get the year part of this time format. The return value from this will be in the range 0 - 99 for relative times, or will be the full year (such as 2007) for absolute times.

Returns:
The year part of this time format.

getMonth

int getMonth()
Get the month part of this time format. This will always return a value in the range 1 - 12.

Returns:
The month part of this time format.

getDay

int getDay()
Get the day part of this time format. This will always return a value in the range 1 - 31.

Returns:
The day part of this time format.

getHour

int getHour()
Get the hour part of this time format. This will always return a value in the range 0 - 23.

Returns:
The hour part of this time format.

getMinute

int getMinute()
Get the minute part of this time format. This will always return a value in the range 0 - 59.

Returns:
The minute part of this time format.

getSecond

int getSecond()
Get the second part of this time format. This will always return a value in the range 0 - 59.

Returns:
The second part of this time format.

getTenth

int getTenth()
Get the tenths of a second part of this time format. This will always return a value in the range 0 - 9.

Returns:
The tenths of a second part of this time format.

getUtcOffset

int getUtcOffset()
Get the UTC offset part of this time format. This will always return a value in the range 0 - 48. The "direction" of the offset should be determined using getSign().

Returns:
The UTC offset part of this time format.
See Also:
#getTimeZone()

getSign

char getSign()
Get the timezone offset modifier character. For absolute time formats, this will return one of '+' if the timezone offset is ahead of UTC, '-' if the timezone offset is behind UTC, or (char) 0 if there is no timezone information.

Returns:
One of '+', '-' or (char) 0.

isAbsolute

boolean isAbsolute()
Determine if this date object represents an absolute time.

Returns:
true if this object is an absolute time, false otherwise.

isRelative

boolean isRelative()
Determine if this date object represents a relative time.

Returns:
true if this object is a relative time, false otherwise.


Copyright © 2010. All Rights Reserved.