Re: Format of datetime dump

Oren Ben-Kiki <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <CADJiDhvWm_B_6xytevKKNo_1_39iU0fRdqgJkqd=2RAvxQxZMg@mail.gmail.com>
YAML (and other systems) allow the "T" separator to be replaced by a space
for increased readability. Since readability always comes first in YAML,
this is also the default.

Oren Ben-Kiki

On Fri, Oct 19, 2012 at 2:58 PM, Mateusz Loskot <[email protected]> wrote:

> Hi,
>
> Given this snippet:
>
> yaml.dump({'date':datetime.datetime.now()})
> "{date: !!timestamp '2012-10-19 01:32:41.674322'}\n"
>
> Could anyone enlighten me why the ISO8601 format YYYY-MM-DDThh:mm:ssTZD
> is not used here, by default?
> Is there any mean to make yaml.dump generating datetime in ISO8601?
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core
>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.