Python Forum
Pass integers to datetime.date function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass integers to datetime.date function
#4
I would note the following: 1) OP tries to parse xml file and assume that if <wp:post_date> is in x, then x should contain some data. x is a string and might include just <wp:post_date> tag. I would recommend to use xml-parser instead; (the same is true for title tag) 2) It is recommended to open files using with keyword.
Reply


Messages In This Thread
RE: Pass integers to datetime.date function - by scidam - Jul-18-2020, 04:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare current date on calendar with date format file name Fioravanti 1 272 Mar-26-2024, 08:23 AM
Last Post: Pedroski55
  Python date format changes to date & time 1418 4 638 Jan-20-2024, 04:45 AM
Last Post: 1418
  How to pass encrypted pass to pyodbc script tester_V 0 884 Jul-27-2023, 12:40 AM
Last Post: tester_V
  Review my code: convert a HTTP date header to a datetime object stevendaprano 1 2,026 Dec-17-2022, 12:24 AM
Last Post: snippsat
  Filter dataframe by datetime.date column glidecode 2 5,229 Dec-05-2021, 12:51 AM
Last Post: glidecode
  Date format and past date check function Turtle 5 4,316 Oct-22-2021, 09:45 PM
Last Post: deanhystad
  Regex - Pass Flags as a function argument? muzikman 6 3,638 Sep-06-2021, 03:43 PM
Last Post: muzikman
  Possible to dynamically pass arguments to a function? grimm1111 2 2,220 Feb-21-2021, 05:57 AM
Last Post: deanhystad
  How to add previous date infront of every unique customer id's invoice date ur_enegmatic 1 2,248 Feb-06-2021, 10:48 PM
Last Post: eddywinch82
  Convert date integers (ex. 43831) to regular format Galven 2 2,655 Nov-15-2020, 11:38 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020