|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 12c Release 1 (12.1.2.0.0) E23185-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.adf.view.rich.util.DateTimeUtils
public final class DateTimeUtils
Provides utilities for processing Date objects. Contains a list of commonly used timezones supplied by globalization, and methods to retrieve the translated timezone names for a timezone.
| Method Summary | |
|---|---|
static TimeZone |
getActualTimeZone(TimeZone tz)The entire time zone repository contains 500+ time zones. |
static List<javax.faces.model.SelectItem> |
getCommonTimeZoneSelectItems()Returns a list of commonly used timezones, sorted by the timezone's raw offset. |
static List<javax.faces.model.SelectItem> |
getCommonTimeZoneSelectItems(Locale loc, TimeZone addTimeZone)Returns a list of commonly used timezones, sorted by the timezone's raw offset. |
static List<javax.faces.model.SelectItem> |
getCommonTimeZoneSelectItems(String timeZoneId)Returns a list of commonly used timezones, sorted by the timezone's raw offset. |
static String |
getTimeZoneDisplayName(Locale loc, String timezoneID) |
static List<javax.faces.model.SelectItem> |
getTimeZoneSelectItems(Locale translationLocale, TimeZone addTimeZone, List<String> timezones)Returns a list of SelectItems for the timezones passed in. |
static List<javax.faces.model.SelectItem> |
getTimeZoneSelectItems(String addTimeZoneId, List<String> timezones)Returns a list of SelectItems for the timezones passed in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<javax.faces.model.SelectItem> getCommonTimeZoneSelectItems()
public static List<javax.faces.model.SelectItem> getCommonTimeZoneSelectItems(String timeZoneId)
timeZoneId - If the specified timezone with this id is not present in the common list, it will be inserted in raw offset order after the common timezones with the same raw offset.
public static List<javax.faces.model.SelectItem> getCommonTimeZoneSelectItems(Locale loc,
TimeZone addTimeZone)
loc - Determines the locale/translations for the timezone namesaddTimeZone - If the specified timezone is not present in the common list, it will be inserted in raw offset order.
public static List<javax.faces.model.SelectItem> getTimeZoneSelectItems(String addTimeZoneId,
List<String> timezones)
addTimeZoneId - If the specified timezone is not present in the timezones list, it will be inserted in raw offset order after existing timezones with the same raw offset.timezones - A List of TimeZone ids, sorted by increasing raw offset order
public static List<javax.faces.model.SelectItem> getTimeZoneSelectItems(Locale translationLocale,
TimeZone addTimeZone,
List<String> timezones)
addTimeZone - If the specified timezone is not present in the timezones list, it will be inserted in raw offset order after existing timezones with the same raw offset.timezones - A List of TimeZone ids, sorted by increasing raw offset orderpublic static TimeZone getActualTimeZone(TimeZone tz)
tz - Timezone to check
public static String getTimeZoneDisplayName(Locale loc,
String timezoneID)
loc - Locale for display name of requested timezonetimezoneID - Requested TimeZone, should be one of Java's 500+ Timezones
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 12c Release 1 (12.1.2.0.0) E23185-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2013 Oracle Corporation. All Rights Reserved.