#!/usr/bin/env python # -*- coding: utf-8 -*- import time import os checkfile='locks/records_moved' def prevday(then,now): #ist "then" gestern (oder noch älter)? return ((then.tm_yday