datetime - A detailed explaination of what is "wrong" with date handling in GWT -


i have seen countless forum posts complaining of issues in gwt when handling dates. still unclear "wrong" date handling, special considerations need made, , when/where/why methods date.setminutes(int minutes) should not used.

does have feedback?

way in beginning of java (i.e., java 1.0), date/time api largely (solely?) consisted of date class. java folks aware lacked robustness, added calendar class in java 1.1 , tried change date class value object deprecating of it. unfortunately, calendar class wasn't thought-out (see here) , we're stuck many consider monstrosity.

bringing today, gwt supports date because, well... how can live without dates?, doesn't support calendar/gregoriancalendar/timezone because it's ugly , surely there has better answer. sadly, no one's thought of in on 3 years calendar support requested way in january of 2007 , marked planned april 2008.

in short, go ahead , use the deprecated date methods in gwt code, if work need do.

edit: gwt's calendarutil class might come in handy.


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -