Package ai.nexconn.chatui.picture.tools
Class DateUtils
-
- All Implemented Interfaces:
public class DateUtils
-
-
Method Summary
Modifier and Type Method Description static DateUtilsgetInstance()intdateDiffer(long d)Calculate the difference in seconds between two timestamps StringformatDurationTime(long duration)Convert timestamp to time format StringgetCreateFileName(String prefix)Create file name from timestamp StringcdTime(long sTime, long eTime)Calculate the time interval between two timestamps -
-
Method Detail
-
getInstance
static DateUtils getInstance()
-
dateDiffer
int dateDiffer(long d)
Calculate the difference in seconds between two timestamps
-
formatDurationTime
String formatDurationTime(long duration)
Convert timestamp to time format
-
getCreateFileName
String getCreateFileName(String prefix)
Create file name from timestamp
- Parameters:
prefix- name prefix
-
cdTime
String cdTime(long sTime, long eTime)
Calculate the time interval between two timestamps
-
-
-
-