com.buck.commons.i18n
Class DateTime
java.lang.Object
com.buck.commons.i18n.DateTime
public class DateTime
- extends Object
Provides basic date and time support.
- Author:
- Robert J. Buck
|
Method Summary |
static long |
getDefaultTimeZoneOffset(Date date)
Gets the total default timezone offset, taking into account the raw
offset and the daylight savings time offset. |
static long |
getTimeZoneOffset(Date date,
TimeZone timeZone)
Gets the total timezone offset, taking into account the raw offset and
the daylight savings time offset. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTime
public DateTime()
getDefaultTimeZoneOffset
public static long getDefaultTimeZoneOffset(Date date)
- Gets the total default timezone offset, taking into account the raw
offset and the daylight savings time offset.
- Parameters:
date - the date from which to calculate the dst offset relative to
- Returns:
- the total default timezone offset
getTimeZoneOffset
public static long getTimeZoneOffset(Date date,
TimeZone timeZone)
- Gets the total timezone offset, taking into account the raw offset and
the daylight savings time offset.
- Parameters:
date - the date from which to calculate the dst offset relative
totimeZone - the timezone to get the total offset for
- Returns:
- the total timezone offset
Copyright © 2013. All Rights Reserved.