Would that mean that something like

DateTimeZone zone = ...
DateTime dt = ...

if (zone.nextTransition(dt.getMillis()) <
Hours.ONE.toStandardDuration().getMillis()) {
    warning("Please provide timezone and DST information");
}

does the trick? Is there any way to find out the length of the
transition? I would expect that the length is always 1 hour, but that
must not be true.

Moritz.

On 10/29/07, Stephen Colebourne <[EMAIL PROTECTED]> wrote:
> No there is no such method, or easy way at present. Sounds like a good
> idea though.
>
> (Implementing it involves working out how close the instant is to the
> DST transition as returned by DateTimeZone.nextTransition)
>
> Stephen
>
> Moritz Petersen wrote:
> > Hello everyone,
> >
> > is there a simple and effective way to detect ambigious time when
> > changing from DST back to standard time?
> >
> > For example:
> >
> > 28.10.2007 01:30 (Berlin/Germany)
> >
> > exists twice, once with DST and once at standard time. I would like to
> > have something like:
> >
> > DateTime dt = new DateTime("28.10.2007 01:30"); // forget the syntax
> > of the parameter it's just for demonstration.
> >
> > if (dt.isAmbigous()) {
> >     warning("Please provide timezone and DST information");
> > }
> >
> > Any advice?
> >
> > Thank you,
> > Moritz.
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Joda-interest mailing list
> > Joda-interest@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/joda-interest
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to