on 08-11-2007 1:51 PM
Hi,
has anybody of you sample coding to determine if a date is in "daylight saving time" or out "daylight saving time"?
Thanks regards
Mario
Hi,
Refer following articles:
2) http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
Are you using a Calendar object? Then you can use the following code:
myCalendar.getTimeZone().inDaylightTime(myCalendar.getTime())
In any case, you need to know the timezone of the date, because some timezones have different DST dates.
Please refer to the class <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimeZone.html">java.util.TimeZone</a>.
Best regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.