add time validation
add time extraction functions
Merge pull request #10 from igas/more-time-functions

Add time validation and fetching time segment