[Má...] Posted July 2, 2021 Share Posted July 2, 2021 Hello! I would like to do customised exports and add the exact creation time as Kiosk does it automatically. I found "gom.app.project.project_creation_time" but it do not give us seconds and show information in another format. What I would like to get is something like 2021_01_01_12_01_30 . Thanks! Link to comment Share on other sites More sharing options...
[Th...] Posted August 9, 2021 Share Posted August 9, 2021 (edited) You can change any time format to any other by using Python's datetime's strptime- and strftime-methods like this: # -*- coding: utf-8 -*- import gom from datetime import datetime dt_str = gom.app.project.project_creation_time # something like "02.06.2021 18:24" dt = datetime.strptime (dt_str, "%d.%m.%Y %H:%M") new_dt_str = dt.strftime ("%Y_%m_%d_%H_%M_%S") # something like "2021_06_02_18_24_00" Well - (micro)seconds will be zero anyhow. I hope it helps. Edited August 9, 2021 Link to comment Share on other sites More sharing options...
[St...] Posted February 15, 2023 Share Posted February 15, 2023 Hi all, I found this interesting Topic. Now I´m standing for a similar problem. So, can you show me the file and the filepath, where can I find and change it? Thanks in Advance, Steve Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in