Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31756 > unrolled thread

Fwd: Format of datetime dump

Started byMateusz Loskot <mateusz@loskot.net>
First post2012-10-19 20:00 +0100
Last post2012-10-19 20:00 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Fwd: Format of datetime dump Mateusz Loskot <mateusz@loskot.net> - 2012-10-19 20:00 +0100

#31756 — Fwd: Format of datetime dump

FromMateusz Loskot <mateusz@loskot.net>
Date2012-10-19 20:00 +0100
SubjectFwd: Format of datetime dump
Message-ID<mailman.2521.1350673245.27098.python-list@python.org>
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 <mateusz@loskot.net>
Date: 19 October 2012 13:58
Subject: Format of datetime dump
To: yaml-core@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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web