refactor time diff into func
add .gitignore