Fix time.py

The regular expression for retrieving time is not working.