|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.number.NamedTimeZone
public class NamedTimeZone
This class attempts to identify a timezone name, given the date (including the time zone offset) and the country. The process is heuristic: sometimes there is more than one timezone that matches this information, sometimes there is none, but the class simply does its best. This is in support of the XSLT format-date() function.
| Constructor Summary | |
|---|---|
NamedTimeZone()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
formatTimeZoneOffset(DateTimeValue timeValue)
Format a timezone in numeric form for example +03:00 (or Z for +00:00) |
static java.lang.String |
getOlsenTimeZoneName(DateTimeValue date,
java.lang.String country)
Try to identify a timezone name corresponding to a given date (including time zone) and a given country. |
static java.lang.String |
getTimeZoneNameForDate(DateTimeValue date,
java.lang.String country)
Try to identify a timezone name corresponding to a given date (including time zone) and a given country. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedTimeZone()
| Method Detail |
|---|
public static java.lang.String getTimeZoneNameForDate(DateTimeValue date,
java.lang.String country)
date - the dateTimeValue, including timezonecountry - the two-letter ISO country code
public static java.lang.String formatTimeZoneOffset(DateTimeValue timeValue)
timeValue - the value whose timezone is to be formatted
public static java.lang.String getOlsenTimeZoneName(DateTimeValue date,
java.lang.String country)
date - the dateTimeValue, including timezonecountry - the two-letter ISO country code
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||