Skip to content

9-FS/2021-12-22-Filename-Dateformat-Changer

Repository files navigation

Topic Author
Filename Dateformat Changer
구FS

Filename Dateformat Changer



1. General

This program is intended to change the date format of file names. It renames according to the Filename Dateformat Changer.csv.

2. How to Use

  1. Execute the program once. This will create a default Filename Dateformat Changer.csv.

  2. Fill your lines out like this:

    {input datetime format}\t{input timezone offset}\t{output datetime format}\t{output timezone offset}
    

    Example:

    input datetime format	input timezone offset	output datetime format	output timezone offset
    
    # samsung camera
    %Y%m%d_%H%M%S		%Y-%m-%d %H_%M_%S	
    %Y%m%d_%H%M%S(%f)		%Y-%m-%d %H_%M_%S	
    
    # dropbox
    %Y-%m-%d %H.%M.%S		%Y-%m-%d %H_%M_%S	
    %Y-%m-%d %H.%M.%S(%f)		%Y-%m-%d %H_%M_%S	
    
    # apple
    Foto %d.%m.%y, %H %M %S	+02:00	%Y-%m-%d %H_%M_%S	+00:00
    
  3. Use the datetime expressions from the python datetime library.

  4. Execute either main_outer.py with python or a Filename Dateformat Changer.exe directly.