```
if (time <= 0l) {
    return "";
}

SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sf.format(new Date(time));
```