-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize timeformat in filenames #32
Comments
I was wondering why your date contains slashes. Seems like the date from trade republic is different depending on your locale. |
Thanks for your quick response. I have to clarify that the time contains slashes. Here are two example filename's located in
I wrote datetime because I thought about parsing your mentioned iso_date together with the time with datetime. But for sure one could just replace the slash with a colon too :) |
Interesting. My files all use |
Note that with the changes in pull request #55 the local file name is stored as part of the event JSON. It would be possible to write another python script which then goes through them and renames the files as the user pleases. I am planning to generate some import data for Portfolio Performance from it. |
Hello,
thank you for your great work! pytr is a really helpful tool!
I think it would be great if we could format the datetime within the filename.
My problem with the slash as time delimiter is that OneDrive cannot upload files containing a slash.
I just quickly looked into the code and thought one could parse the date and time to format it according to a user defined format, e.g. provided by another argument like
--timeFormat
with a default value of the existing behavior or an ISO format.What do you think about it? If you need any support, I would be happy to help.
Thank you!
The text was updated successfully, but these errors were encountered: