[OTDev] DateTime Format in Web Services

chung chvng at mail.ntua.gr
Sat Sep 11 03:35:58 CEST 2010


On Sat, 2010-09-11 at 01:20 +0300, Nina Jeliazkova wrote:

> On Fri, Sep 10, 2010 at 9:25 PM, chung <chvng at mail.ntua.gr> wrote:
> 
> > Dear All,
> >  I think we should adopt a standard data/time format in our web
> > services.
> 
> 
> Agree.
> 
> 
> > First of all, let me remind that the xsd datatype we currently
> > use for date is xsd:DateTime.
> > I suggest we all used the format "E MMM dd HH:mm:ss Z yyyy", for
> > example: Fri Sep 10 19:49:36 EEST 2010. This will facilitate the parsing
> > of dates where necessary.
> >
> 
> 
> A better approach is to adopt UNIX timestamps and not rely on string
> representations.  This is what is usually used in XML representations.


This is fine and can be easily parsed with Java but does not contain any
information about the timezone (but this is maybe minor). I'm OK with
timestamps!


> 
> Best regards,
> Nina
> 
> 
> >
> > Best Regards,
> > Pantelis
> > _______________________________________________
> > Development mailing list
> > Development at opentox.org
> > http://www.opentox.org/mailman/listinfo/development
> >
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
> 





More information about the Development mailing list