Re: date format. Take a look at the Date Time Formats sections at http://code.google.com/p/simile-widgets/wiki/Timeline_EventSources. Something like "Sat May 20 1961 00:00:00 GMT-0600" is preferred but some other formats are acceptable.
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 at http://en.wikipedia.org/wiki/ISO_8601 I do not know if you can write a javascript function to reformats your date values. I know you can in Exhibit; just not sure about Timeline. I'd be surprised if you couldn't. - John ************************************************** John Callahan Geospatial Application Developer Delaware Geological Survey, University of Delaware 227 Academy St, Newark DE 19716-7501 Tel: (302) 831-3584 Email: [email protected] http://www.dgs.udel.edu ************************************************** Rahul wrote: > What time formats does Timeline understand? I was trying to integrate > a timeline into my Exhibit. > > My Exhibit.js had fields like so: > > { > "CPU" : "intel", > "Warranty" : "Expired (10/2006)", > "Model" : "xps2800", > "speed" : 1, > "clock" : 2793, > "Room" : "2040EH", > "Form" : "large", > "type" : "Item", > "label" : "star21", > "np" : 1, > "Arch" : "32 bit", > "Purchase" : "Nov 2003" > }, > > Will the Purchase field "Nov 2003" be understood or do I have to add > more data? Rather than modify my original .js can I somehow create a > mapping like so: > > Nov 2003 --> 11/1/2003 > March 2004 -> 3/1/2004 > etc. > > THere are only a small (10) number of discrete dates so this should be > easier than modifying the hundreds of entries in my original .js > > A second problem is that my time bands do not really have a "end" > date. I want them to start at various points but then continue pretty > much till infinity. Any way to set the "ex:end" field to infinity? Or > today? Or a particular hardcoded date? > > Any tips? > > Thanks! > > -- > Rahul > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
