Python Forum
Set 'Time' format cell when writing data to excel and not 'custom'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Set 'Time' format cell when writing data to excel and not 'custom'
#1
Smile 
Hi Smile ,

I am using python v3.6 with xlsxwriter. Writing time into excel cell. The problem that I see that the format cell is custom and not Time. I tried using "%H%M%S" in format cell. Also used datetime object and time object instead of string, but in all cases cell format was custom and not Time.
Any idea how can I change it to be Time format cell instead of custom?
BTW, in date I used datetime object with "/" separator and it appeared as date. Maybe I am using wrong format. I tried to use [h]:mm:ss and also hh:mm:ss.

Does anyone has working example that set the time as an time object and not custom?

Thank you for your help ,
Limor
Reply


Messages In This Thread
Set 'Time' format cell when writing data to excel and not 'custom' - by limors - Mar-29-2021, 07:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with writing monitored data to mysql upon change of one particular variable donottrackmymetadata 3 298 Apr-18-2024, 09:55 PM
Last Post: deanhystad
  Python date format changes to date & time 1418 4 618 Jan-20-2024, 04:45 AM
Last Post: 1418
  Export data from PDF as tabular format zinho 5 708 Nov-11-2023, 08:23 AM
Last Post: Pedroski55
  Copy data from Excel and paste into Discord (Midjourney) Joe_Wright 4 2,068 Jun-06-2023, 05:49 PM
Last Post: rajeshgk
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,113 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  Set string in custom format korenron 4 1,104 Jan-16-2023, 07:46 PM
Last Post: mutantGOD
  How to properly format rows and columns in excel data from parsed .txt blocks jh67 7 1,888 Dec-12-2022, 08:22 PM
Last Post: jh67
  Issue in writing sql data into csv for decimal value to scientific notation mg24 8 3,068 Dec-06-2022, 11:09 AM
Last Post: mg24
  Trying to Get Arduino sensor data over to excel using Python. eh5713 1 1,724 Dec-01-2022, 01:52 PM
Last Post: deanhystad
  Appending a row of data in an MS Excel file azizrasul 3 1,191 Nov-06-2022, 05:17 PM
Last Post: azizrasul

Forum Jump:

User Panel Messages

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