add method to get file type defined is self constants
add method to convert DateInterval to seconds