473,513 Members | 2,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help parsing this

a
mx.DateTime.RangeError at /podcasts
Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
DateTimeFromString, line 608

how to parse this date
thanks

Aug 14 '06 #1
5 1584

"a" <a@tempinbox.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
mx.DateTime.RangeError at /podcasts
Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
DateTimeFromString, line 608

how to parse this date
thanks
There isn't a 31st of April.
Aug 14 '06 #2
"a" wrote:
mx.DateTime.RangeError at /podcasts
Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
DateTimeFromString, line 608

how to parse this date
parse it into what? there is no such thing as "April 31st".

</F>

Aug 14 '06 #3
>how to parse this date
>
parse it into what? there is no such thing as "April 31st".
I think somebody's chain is getting pulled...thus the right thing
to do is to wrap around and return "April 1st" ;-)

-Loof Lirpa

Aug 14 '06 #4
a wrote:
mx.DateTime.RangeError at /podcasts
Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
DateTimeFromString, line 608

how to parse this date
thanks
"""
30 days hath September
APRIL, June and November
All the rest have 31
Excepting February alone
That has 29 days clear
And 29 in each leap year
"""

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Aug 14 '06 #5
"a" <a@tempinbox.comwrote in message
news:11**********************@75g2000cwc.googlegro ups.com...
mx.DateTime.RangeError at /podcasts
Failed to parse "31 Apr 2006 20:19:00 -0400": day out of range: 31
Python /usr/lib/python2.4/site-packages/mx/DateTime/Parser.py in
DateTimeFromString, line 608

how to parse this date
thanks
Looks like it was parsed properly. What do you suppose that silly
mx.DateTime.RangeError exception was all about?

-- Paul
Aug 14 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2182
by: Dennis Roberts | last post by:
I have a script to parse a dns querylog and generate some statistics. For a 750MB file a perl script using the same methods (splits) can parse the file in 3 minutes. My python script takes 25 minutes. It is enough of a difference that unless I can figure out what I did wrong or a better way of doing it I might not be able to use python...
0
1483
by: burn_hall | last post by:
Hi, I have a problem and can't figure it out and need your help, please look at the following code and the output also a xml file snippet is down there too. Looking at the output I don't know why it's not according to the code. Following code is pretty much clear: When method starts execution <Pat> Node is passed it has childNodes Inside...
16
2857
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed loaded into cache, the slideshow doesn't look very nice. I am not sure how/when to call the slideshow() function to make sure it starts after...
6
4305
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing result in any way. Who can help me, I thank you very very much. list.cpp(main program)...
3
1731
by: uestebanez | last post by:
Hi everybody! I have a little problem working with libxml SAX API. The problem is that I don't know how to stop parsing when I have processed the data I need. I don't want to parse all file, I only need read until I reach certain part of the xml and then stop parsing. Does anybody know how to stop? Another question is, Is necessary free...
4
2632
by: ralphNOSPAM | last post by:
Is there a function or otherwise some way to pull out the target text within an XML tag? For example, in the XML tag below, I want to pull out 'CALIFORNIA'. <txtNameUSState>CALIFORNIA</txtNameUSState>
8
11126
by: mrwoopey | last post by:
Hi, I need to get data from a client via a HL7 interface. How can I do this? Can I do this via visual basic? Please post, code, links, anything! Your help is appreciated! Phin
1
1704
by: sommarlov | last post by:
Hi everyone >From one of our systems an xml file is produced. I need to validate this file before we send it to an external system for a very lenghty process. I cannot change the xml file layout. The solution i got today is very slow, and i need help to find another solution. Here is the xml file. It consists of a list of position ids...
1
1635
by: syhzaidi | last post by:
How can we do Parsing of Hexdecimel in C# reading string from stream file for eg.. i have a file like.......... 0f 2f 12 2d 3a.......in hexa decimal save in a file.txt and i m reading it from the file....... now i have to convert this in decimal and save in an array.of integers.......i thought it can be achieved through parsing ..means 0f...
2
6340
by: embz | last post by:
this post concerns three pages. 1. this page: http://www.katherine-designs.com/sendemail.php i get the following errors: a lot of it seems to deal with the PHP code i inserted to the page. as my PHP skills are close to nil, i'm wary about fiddling with it myself. =\ 2. now this page: http://www.katherine-designs.com/contact.php
0
7270
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5704
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3255
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3242
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
817
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.