datetime range extractor gem