|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webcenter.generalsettings.internal.model.GSPreferences
oracle.webcenter.generalsettings.model.TimeZoneSetting
public class TimeZoneSetting
Shared Preferences for 'Time Zone' Settings.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_TIMEZONE_ID The time zone used if not set by the user or default preference (based on the server's time zone. |
static java.lang.String |
TIME_ZONE_KEY The internal preference key used for storing the timezone preference. |
Fields inherited from class oracle.webcenter.generalsettings.internal.model.GSPreferences |
---|
NULL_VALUE |
Constructor Summary | |
---|---|
TimeZoneSetting() |
Method Summary | |
---|---|
static java.util.Calendar |
getCurrentTime() Get current time (from the user's point of view) as a Calendar. |
static java.lang.String |
getDefaultTimeZone() Returns the application's default time zone identifier. |
static java.util.Calendar |
getGMTTime() |
static int |
getMidnightOffset() Return the number of minutes since the previous midnight (from the user's point of view) so that, for example, at 4:00am, this would return 240 (4 hours X 60). |
static java.util.Calendar |
getMidnightToday() Get Calendar object representing Midnight this morning (for example if the current time from the user's point of view is 14:00 on 24th May 2007, this method will return '00:00 24th May 2007'. |
static int |
getMidnightYesterdayOffset() Return the number of minutes since the midnight of the previous night (from the user's point of view) so that, for example, at 4:00am this would return 1680 (4 hours X 60 + 24 hours X 60). |
static java.lang.String |
getPreferredTimeZone() Returns the current user's preferred time zone identifier. |
static java.util.TimeZone |
getUserTimeZone() Get the user's preferred TimeZone (as a TimeZone object). |
static java.lang.String |
getUserTimeZonePref() Returns the current user's time zone identifier preference value, or null if the user preference is not set - designed to be used in building preference UIs. |
static void |
setDefaultTimeZone(java.lang.String timezone) Set the application's time zone identifier. |
static void |
setPreferredTimeZone(java.lang.String timezone) Deprecated. replaced by setUserTimeZonePref() |
static void |
setUserTimeZone(java.util.TimeZone timezone) Set the user's preferred TimeZone (as a TimeZone object). |
static void |
setUserTimeZonePref(java.lang.String timezone) Set the current user's preferred time zone identifier. |
Methods inherited from class oracle.webcenter.generalsettings.internal.model.GSPreferences |
---|
getPreferred, getProvider, getSystemPref, getUserPref, setSystemPref, setUserPref |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TIME_ZONE_KEY
public static java.lang.String DEFAULT_TIMEZONE_ID
Constructor Detail |
---|
public TimeZoneSetting()
Method Detail |
---|
public static java.lang.String getPreferredTimeZone()
The time zone identifier returned is of the format GMT{+|-}hh:mi e.g. GMT+05:30 or GMT-08:05. This identifier can be used to create a java.util.TimeZone
object as follows :-
TimeZone.getTimeZone("GMT+05:30");
public static java.lang.String getUserTimeZonePref()
The time zone identifier returned is of the format GMT{+|-}hh:mi e.g. GMT+05:30 or GMT-08:05.
public static void setPreferredTimeZone(java.lang.String timezone)
public static void setUserTimeZonePref(java.lang.String timezone)
The time zone identifier should be of the format GMT{+|-}hh:mi e.g. GMT+05:30 or GMT-08:05.
timezone
- the preferred time zone identifierpublic static java.lang.String getDefaultTimeZone()
The time zone identifier returned is of the format GMT{+|-}hh:mi e.g. GMT+05:30 or GMT-08:05. This identifier can be used to create a java.util.TimeZone
object as follows :-
TimeZone.getTimeZone("GMT+05:30");
public static void setDefaultTimeZone(java.lang.String timezone)
The time zone identifier should be of the format GMT{+|-}hh:mi e.g. GMT+05:30 or GMT-08:05.
timezone
- the preferred time zone identifierpublic static java.util.TimeZone getUserTimeZone()
public static void setUserTimeZone(java.util.TimeZone timezone)
public static java.util.Calendar getCurrentTime()
public static java.util.Calendar getMidnightToday()
public static int getMidnightOffset()
public static int getMidnightYesterdayOffset()
public static java.util.Calendar getGMTTime()
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |