Time Date Conversion?
Steve
Gronicus at SGA.Ninja
Wed Nov 4 18:02:16 EST 2020
More information about the Python-list mailing list
Wed Nov 4 18:02:16 EST 2020
- Previous message (by thread): IDEL from Windows It does not work
- Next message (by thread): Time Date Conversion?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The text File entry is:
BPd 2020-11-04 17:28:03.352027 66
I bring it into the program using:
with open("_TIME-DATE.txt" , 'r') as infile:
for lineEQN in infile: # loop to find each line in the file for that
dose
and set it in a variable as follows:
ItemDateTime = lineEQN[7:36].strip()
When I print ItemDateTime, it looks like:
2020-11-04 17:28:03.352027
How do I display it as "Wednesday, November 4, 2020 5:28pm" ?
Steve
-------------------------------------------------------------------------
Footnote:
Seatbelts are very dangerous.
I cannot tell you how many times I almost
got into an accident trying to buckle one.
- Previous message (by thread): IDEL from Windows It does not work
- Next message (by thread): Time Date Conversion?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list