redo time, add localtime method