public static TimeZone getTimeZone(String ID)
Gets the TimeZone for the given ID.
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". Note that the support of abbreviations
is for JDK 1.1.x compatibility only and full names should be
used.
Returns:
the specified TimeZone, or the GMT zone if the given ID cannot
be understood.
Is this the JavaDoc you were referring to? This method returns a TimeZone
object. According to the class JavaDocs,
TimeZone represents a time zone offset, and also figures out daylight
savings.
The foolishness of American and Australian politicians not withstanding,
the observance of Summertime/Daylight Savings Time (or lack thereof) is not
just a nice-to-have. It is a core property of the TimeZone class.
Ian
It's better to be hated for who you are
than loved for who you are not
Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078
Jörg Schaible
<[EMAIL PROTECTED] To: "Maven Users List"
<[email protected]>
utions.com> cc:
Subject: RE: TimeZone
Element in pom.xml
04/04/2006 12:27 PM
Please respond to "Maven
Users List"
Hi Andreas and Ian,
Again, why would anyone use a structure of three elements that is also
never correct if the daylight saving is changed in a country like it has
been done currently for Australia? The zone ID is all you need, see
javadocs to TimeZone!
- Jörg
Andreas Guther wrote on Tuesday, April 04, 2006 5:36 PM:
> Ian,
>
> I believe changing the timezone element to a complex element
> in the way
> you suggest is an excellent idea. I have filed an enhancement
> request quoting your email:
>
> http://jira.codehaus.org/browse/MNG-2202
>
> Andreas
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 04, 2006 6:36 AM
> To: Maven Users List
> Subject: Re: TimeZone Element in pom.xml
>
> Note that the observation of Summertime/Daylight Savings Time does not
> change the timezone where a developer resides.
>
> Instead of changing everybody's timezone twice a year, I
> would recommend
> making the timezone element its own complex type, more inline with
> the java.util.TimeZone class:
>
> <timezone>
> <name>Eastern</name>
> <offset>-5</offset>
> <useDaylight>true</useDaylight>
> </timezone>
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
>
>
> "Andreas Guther"
>
> <[EMAIL PROTECTED] To: "Maven
> Users List" <[email protected]>
>
> ttools.com> cc:
>
> Subject: TimeZone
> Element in pom.xml 04/04/2006 12:43 AM
>
> Please respond to
>
> "Maven Users List"
>
>
>
>
>
>
>
> Hi,
>
> Is there a way in Maven to adjust the TimeZone element in the
> pom.xml to
> daylight savings time?
>
> We have an international team and I like the fact that we can
> see on the
> maven generated web site's team list what time it is for a specific
> developer. What I am missing is the automatic adjustment for example
> for my time zone which is in winter times -8 and in summer times -7.
> I just made a global search and replace in my pom.xml but actually
> it would be
> more convenient maven could do that for me.
>
> Is there anything that helps me solving the problem or is
> this worth an
> enhancement request?
>
> Andreas
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]