22 messages in com.googlegroups.google-visualization-api[visualization-api] Re: Date for anno...| From | Sent On | Attachments |
|---|---|---|
| Jeremiah Elliott | 12 Jun 2008 12:06 | |
| VizGuy (Google) | 15 Jun 2008 04:40 | |
| Jason | 17 Jun 2008 11:39 | |
| Jeremiah Elliott | 17 Jun 2008 14:51 | |
| Jason | 17 Jun 2008 19:34 | |
| Jeremiah Elliott | 18 Jun 2008 07:18 | |
| Jason Brechin | 18 Jun 2008 07:33 | |
| Jeremiah Elliott | 18 Jun 2008 07:43 | |
| Google VizGuy | 24 Jun 2008 03:38 | |
| Jeremiah Elliott | 24 Jun 2008 06:04 | |
| shayne (mabulu) | 26 Jun 2008 23:13 | |
| shayne (mabulu) | 26 Jun 2008 23:13 | |
| Jeremiah Elliott | 27 Jun 2008 06:06 | |
| Jeremiah Elliott | 27 Jun 2008 06:27 | |
| Jason Brechin | 27 Jun 2008 07:50 | |
| Uwe Maurer | 01 Jul 2008 09:43 | |
| shayne (mabulu) | 01 Jul 2008 09:56 | |
| Uwe Maurer | 01 Jul 2008 12:07 | |
| Jeremiah Elliott | 15 Jul 2008 11:04 | .html, .java, .html |
| Ray Cromwell | 15 Jul 2008 11:13 | |
| Ray Cromwell | 15 Jul 2008 11:16 | |
| Jeremiah Elliott | 15 Jul 2008 12:27 |
| Subject: | [visualization-api] Re: Date for annotated time line![]() |
|---|---|
| From: | Uwe Maurer (uwe....@gmail.com) |
| Date: | 07/01/2008 09:43:22 AM |
| List: | com.googlegroups.google-visualization-api |
On Jun 27, 4:51 pm, "Jason Brechin" <brec...@gmail.com> wrote:
That makes sense, since the Java Date object has more information in it than the JS Date object seems to have. I've never used the GWT before, so I'm not sure how to work around this.
A javascript Date object is different from a GWT Date object.
I suggest to convert the Date object into a timestamp value (date.getTime()) when passing it between GWT and javascript. And then use "new Date(timestamp)" to get the Date object back. The timestamp value can be passed between GWT/javascript as an int without problems. (not long, since javascript doesn't have this and GWT emulates it using an array of two doubles)
Thanks, Uwe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to goog...@googlegroups.com
To unsubscribe from this group, send email to
goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---





.html, .java, .html