RPN wrote:
>
> On May 8, 4:21 pm, John Callahan <[email protected]> wrote:
>
>
>> Generally, I go with ISO8601 format whenever I can, which is something
>> like "1995-02-04T10:20:01Z". It also has subsets, like "2009-05".
>> more info athttp://en.wikipedia.org/wiki/ISO_8601
>>
>
> Thanks John! ISO sounds promising. The question is: Does Exhibit /
> TImeline use a generic parser that accepts all ISO subsets?
>
> Maybe David, or one of the developers can comment?
>
> I was thinking (for my situation) of having a second .js file with,
> say, "Time" and "AcceptableTime" and then somehow as the ex:start and
> ex:end supply a expression that maps to the acceptable time format.
> This would save me the trouble of changing my whole existing dataset.
>
Rahul,
Both latest Timeline and Exhibit use the ISO8601 parser here
http://api.simile-widgets.org/ajax/2.2.1/scripts/date-time.js
Exhibit only accepts ISO8601 date/time, while Timeline can also accept
the format that the browser supports (which is not cross-browser).
Our ISO8601 parser should accept a variety of forms of ISO8601
date/time, e.g., with/without time, with/without time zone, with/without
date, with/without month, etc. An easy way to test what it accepts is to
load any page with either the latest Timeline or Exhibit, and use
Firebug to evaluate something like
SimileAjax.DateTime.parseIso8601DateTime("2009-05-11")
and see if you get the right Date object back.
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---