Skip to content

Tool written to rewrite timestamps in folders, written with BDFR migration in mind

Notifications You must be signed in to change notification settings

Serene-Arc/timestamp-converter

Repository files navigation

timestamp converter

This is a basic tool for converting timestamps of varying formats to ISO 8601.

For those coming from the BDFR project, the following should convert old timestamps into ISO format:

python3 -m timestampconverter DESTINATION '(\d{4}-\d{2}-\d{2}_\d{2}-\d{2})' '%Y-%m-%d_%H-%M' --recursive

To change the folders in a directory, use the following command. Note that the --recursive and --include-folders options are mutually exclusive, as changing the folder name while there are still files to change will result in an error. Thus, to change folder titles, it must be done one directory at a time.

python3 -m timestampconverter DESTINATION '(\d{4}-\d{2}-\d{2}_\d{2}-\d{2})' '%Y-%m-%d_%H-%M' --include-folders

Arguments and Options

The following options and arguments are available:

  • destination
  • regex
  • time-format
  • -r, --recursive
  • --include-folders
  • -n, --no-act
  • -v, --verbose

About

Tool written to rewrite timestamps in folders, written with BDFR migration in mind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages