Skip to content

Instantly share code, notes, and snippets.

View MaximeWeyl's full-sized avatar

Maxime Weyl MaximeWeyl

View GitHub Profile
@MaximeWeyl
MaximeWeyl / correct_dates.py
Last active October 4, 2020 07:18 — forked from kylehowells/correct_dates.py
Automatically Corrects Insta360 Studio Snapshot Dates according to the filename.
import os
import re
import datetime
import piexif
filepath = os.path.abspath(".")
# Find files with `screenshot` in the name.
files = [f for f in os.listdir(filepath) if "screenshot" in f and f.endswith(".jpg")]
print(files)
"""
Générateur de jours ouvrés français en python
"""
def easter_date(year):
"""
Calcule la date du jour de Pâques d'une année donnée
Voir https://github.com/dateutil/dateutil/blob/master/dateutil/easter.py
:return: datetime