Message5205
C:\>jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_15
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime('09/01/2009', 'm')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:783)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:501)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:476)
at org.python.modules.time.Time.strptime(Time.java:705)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Unterminated quote
>>> exit()
C:\>python
Python 2.5.2 (r252:60911, Dec 2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime('09/01/2009', 'm')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/_strptime.py", line 330, in strptime
(data_string, format))
ValueError: time data did not match format: data=09/01/2009 fmt=m
>>> exit()
the above is causing some issues with date validation in django.forms
(Django version 1.1) |
|
Date |
User |
Action |
Args |
2009-09-29 16:28:22 | jsamsa | set | recipients:
+ jsamsa |
2009-09-29 16:28:22 | jsamsa | set | messageid: <1254241702.22.0.703492550009.issue1481@psf.upfronthosting.co.za> |
2009-09-29 16:28:22 | jsamsa | link | issue1481 messages |
2009-09-29 16:28:21 | jsamsa | create | |
|