use time as object not string
Merge pull request #2 from andrewjpage/master

use time as object not string