Disabling implicit tag for timestamp in PyYaml
Daniel Kahn <daniel.kahn-Q/[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
Greetings,
I get the following result in PyYaml:
>>> import yaml
>>> yaml.load('2012-12-24T22:45:51.000000Z')
datetime.datetime(2012, 12, 24, 22, 45, 51)
>>>
However I do not want this conversion to datetime object, I just want a
string. Changing the input (i.e. adding quotes) is not desirable. How
can I disable this implicit tag?
Thanks,
--dan
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d