get time period from command line