Hi,

I'm not sure if this list is the right place to ask question about PyYAML,
but the yaml-core seems to be too general and quiet.
So, I decided to forward my question here.

I asked on yaml-core the following question, would anyone have any insights?

Mat

---------- Forwarded message ----------
From: Mateusz Loskot <mate...@loskot.net>
Date: 19 October 2012 13:58
Subject: Format of datetime dump
To: yaml-c...@lists.sourceforge.net


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


-- 
Mateusz Loskot, http://mateusz.loskot.net
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to