Yes, that is a good point, use a standardized one.

I actually don't have too much care what the format is, as long as it's simple 
and can convey all the information.

-Steve



----- Original Message ----
> From: Michel Fortin <[email protected]>
> To: Discuss the phobos library for D <[email protected]>
> Sent: Thu, October 14, 2010 4:46:38 PM
> Subject: Re: [phobos] datetime review (new attempt at URL)
> 
> On 2010-10-14, at 16:17, Steve Schveighoffer wrote:
> 
> > Yes, it  is.  But at the end of the day, without including a gigantic 
> > locale 

> > library, we need to standardize on a simple way of printing dates and  
> > times 
>for 
>
> > debugging (i.e. via toString).  My suggestion is simply  to pick one and 
> > say 

> > "this is it, if you want something different, use a  locale library".  I'd 
>prefer 
>
> > it to be my locale, but as long as  it's *something*, it should be fine.
> 
> If you have to pick one, please pick  an ISO-compilant one, like YYYY-MM-DD 
>hh:mm:ss.fff. It's the least ambiguous  format, is pretty readable, and as a 
>bonus you can sort them as strings to put  them in chronological order. 
>Beside, 
>this ordering of date components is used  for SQL, HTML5, and the xs:dateTime 
>base type for XML schemas, and probably many  other places.
> 
> -- 
> Michel Fortin
> [email protected]
> http://michelf.com/
> 
> 
> 
> _______________________________________________
> phobos  mailing list
> [email protected]
> http://lists.puremagic.com/mailman/listinfo/phobos
> 


      
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to