[docs] python 2.7.6: Datetime issue

Tom Williams williamst at uspioneer.com
Wed Jul 15 22:44:00 CEST 2015


I am creating some test data by associating dates to certain fields.  I encountered the following issue:

[cid:image001.png at 01D0BF04.4E1E3000]

import datetime
myDate = datetime.date(2012,01,20) -- No issue
myDate = datetime.date(2012,02,20) -- No issue
myDate = datetime.date(2012,03,20) -- No issue
myDate = datetime.date(2012,04,20) -- No issue
myDate = datetime.date(2012,05,20) -- No issue
myDate = datetime.date(2012,06,20) -- No issue
myDate = datetime.date(2012,07,20) -- No issue
myDate = datetime.date(2012,08,20) -- SyntaxError: invalid token
myDate = datetime.date(2012,09,20) -- SyntaxError: invalid token
myDate = datetime.date(2012,10,20) -- No issue
myDate = datetime.date(2012,11,20) -- No issue
myDate = datetime.date(2012,12,20) -- No issue

thanks,
__________________________________
- Thomas Williams :: williamst at uspioneer.com<mailto:williamst at uspioneer.com>

PIONEER Technologies Corporation
5205 Corporate Ctr. Ct. SE, Ste. A
Olympia, WA   98503-5901
Phone:  360.570.1700
Fax:      360.570.1777
http://www.uspioneer.com

This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged.  This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this  transmission is strictly prohibited.  If you have received this transmission in error, please notify the sender by return e-mail and delete the message.  Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20150715/0112a1cb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 17791 bytes
Desc: image001.png
URL: <http://mail.python.org/pipermail/docs/attachments/20150715/0112a1cb/attachment-0001.png>


More information about the docs mailing list