Python Forum
Datetime format issue with z
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Datetime format issue with z
#3
Thanks, I had a look at that post. The issue I am facing is that %z doesn't seem to be recognised. The syntax of the command is ok since removing the "GMT+..." part allows the code to run

Got it! Python is expecting the timezone offset in HH:MM. The string has it as h:MM so the missing 0 padding is throwing it off. Added the 0 and problem solved
Reply


Messages In This Thread
Datetime format issue with z - by sks3286 - Apr-07-2020, 07:14 AM
RE: Datetime format issue with z - by Larz60+ - Apr-07-2020, 09:54 AM
RE: Datetime format issue with z - by sks3286 - Apr-07-2020, 12:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issue in changing data format (2 bytes) into a 16 bit data. GiggsB 11 2,710 Jul-25-2022, 03:19 PM
Last Post: deanhystad
  How to get datetime from numeric format field klllmmm 3 2,023 Nov-06-2021, 03:26 PM
Last Post: snippsat
  Exporting dataframes to excel without loosing datetime format Rafa 0 1,254 Oct-27-2021, 10:42 AM
Last Post: Rafa
  Issue with 'if' and datetime blakefindlay 6 2,869 Feb-08-2021, 02:52 PM
Last Post: deanhystad
  Issue accessing data from Dictionary/List in the right format LuisSatch 2 2,255 Jul-25-2020, 06:12 AM
Last Post: LuisSatch
  TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str' findbikash 2 9,669 Sep-18-2019, 08:32 AM
Last Post: buran
  Date format issue the_dude 11 7,633 Jun-07-2019, 06:27 AM
Last Post: snippsat
  Change format of datetime Jonas85 6 3,594 Feb-05-2019, 03:47 PM
Last Post: Jonas85

Forum Jump:

User Panel Messages

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