These two lines can be:
```
return sf.format(new Date(time));
```