public class OwTimeZoneInfo extends Object
Time Zone information (UTC offset , hemisphere location , daylight savings) used to select or guess a corresponding time zone.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwTimeZoneInfo()
Constructor
Based on current time zone information. |
OwTimeZoneInfo(Date reference_p,
TimeZone timeZone_p)
Constructor
|
OwTimeZoneInfo(long date_p,
int offset_p,
boolean observesDaylightSavings_p,
Long[] transitions_p,
boolean northernHemisphere_p)
Constructor
|
OwTimeZoneInfo(TimeZone timeZone_p) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Set<Long> |
findDSTTransitions(TimeZone zone_p) |
static Set<Long> |
getDSTTrasitions() |
int |
getOffset() |
TimeZone |
getTimeZone() |
static Set<Long> |
getZoneDSTTransitions(String timeZoneID_p) |
int |
hashCode() |
boolean |
isNorthernHemisphere() |
boolean |
isObservesDaylightSavings() |
String |
toString() |
public OwTimeZoneInfo()
public OwTimeZoneInfo(TimeZone timeZone_p)
public OwTimeZoneInfo(Date reference_p, TimeZone timeZone_p)
timeZone_p
- time zone used to extract the informationpublic OwTimeZoneInfo(long date_p, int offset_p, boolean observesDaylightSavings_p, Long[] transitions_p, boolean northernHemisphere_p)
date_p
- January 1, 1970, 00:00:00 relative time of this information objectoffset_p
- offset of this time zone from UTC at the specified date (date_p)observesDaylightSavings_p
- true if the time zone indicated by this object observes daylight savingstransitions_p
- long UTC time-stamps of daylight savings transition daysnorthernHemisphere_p
- true if the time zone indicated by this object is located in the northern hemispherepublic static Set<Long> getZoneDSTTransitions(String timeZoneID_p)
timeZoneID_p
- a time zone id as defined by TimeZone.getAvailableIDs()
public static Set<Long> getDSTTrasitions()
TimeZone
public TimeZone getTimeZone()
public boolean isNorthernHemisphere()
public int getOffset()
public boolean isObservesDaylightSavings()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.