get time and date

Signed-off-by: Fudong Bai <baifudong@hisense.com>
code cleanup

Signed-off-by: Fudong Bai <baifudong@hisense.com>