# DateUtils

public class DateUtils

## Functions

cdTime
Link copied to clipboard
public String cdTime(long sTime, long eTime)
计算两个时间间隔
dateDiffer
Link copied to clipboard
public int dateDiffer(long d)
判断两个时间戳相差多少秒
formatDurationTime
Link copied to clipboard
public String formatDurationTime(long duration)
时间戳转换成时间格式
getCreateFileName
Link copied to clipboard
public String getCreateFileName(String prefix)
根据时间戳创建文件名
getInstance
Link copied to clipboard
public static DateUtils getInstance()