public class TimezoneUtil extends Object
Constructor and Description |
---|
TimezoneUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
_getOffset(TimeZone timezone) |
TimeZone |
getDefaultTimeZone() |
TimeZone |
getTimeZone(String timeZoneId)
Parameters: ID - the ID for a TimeZone, either an abbreviation such as "PST", a full name such as
"America/Los_Angeles", or a custom ID such as "GMT-8:00".
|
TimeZone |
getTimeZone(User user)
Returns the timezone based on the user profile, if not return the timezone from the server
|
public TimeZone getTimeZone(String timeZoneId)
timeZoneId
- public TimeZone getDefaultTimeZone()
public TimeZone getTimeZone(User user)
user
- public static long _getOffset(TimeZone timezone)
Copyright © 2012–2016 Apache Software Foundation. All rights reserved.