Modifier and Type | Method and Description |
---|---|
static String |
getGreenwichMeanTimeOffset()
Gets the GMT (Greenwich Mean Time) offset from the default time zone, at the current time.
|
static String |
getGreenwichMeanTimeOffset(int timeZoneOffset)
Gets the GMT (Greenwich Mean Time) offset from the supplied timeZoneOffset in minutes.
|
static String |
getGreenwichMeanTimeOffset(TimeZone timeZone)
Gets the GMT (Greenwich Mean Time) offset from the supplied timeZone, at the current time.
|
static String |
getGreenwichMeanTimeOffset(TimeZone timeZone,
long timeInMilliSeconds)
Gets the GMT (Greenwich Mean Time) offset from the supplied timeZone, at the supplied timeInMilliSeconds.
|
static String |
toString(TimeZone timeZone,
Locale locale)
Creates a String representation of the supplied timeZone.
|
public static String getGreenwichMeanTimeOffset()
NullPointerException
- When the supplied timeZone is null.getGreenwichMeanTimeOffset(TimeZone, long)
public static String getGreenwichMeanTimeOffset(TimeZone timeZone)
timeZone
- The time zone to get the GMT offset from.NullPointerException
- When the supplied timeZone is null.getGreenwichMeanTimeOffset(TimeZone, long)
public static String getGreenwichMeanTimeOffset(TimeZone timeZone, long timeInMilliSeconds)
timeZone
- The time zone to get the GMT offset from.timeInMilliSeconds
- The time in milliseconds.NullPointerException
- When the supplied timeZone is null.public static String getGreenwichMeanTimeOffset(int timeZoneOffset)
timeZoneOffset
- The time zone offset in minutes to get the GMT offset from.Copyright © 2008–2018. All rights reserved.