android-first-line/chapter03/src/main/java/pers/tanyong/chapter03/utils/DateUtil.java
<gh_stars>0package pers.tanyong.chapter03.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static String getNowTime(){
        SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
        return sdf.format(new Date());
    }
}
