public class DateTime extends Object
Constructor and Description |
---|
DateTime() |
Modifier and Type | Method and Description |
---|---|
static String |
dateDiffMillis(String dstart,
String dend)
Get the difference in milliseconds between two date strings in the format yyyy/MM/dd HH:mm:ss.SSS
|
static String |
dateDiffMinutes(String dstart,
String dend)
Get the difference in minutes between two date strings in the format yyyy/MM/dd HH:mm:ss
|
static String |
dateDiffSeconds(String dstart,
String dend)
Get the difference in seconds between two date strings in the format yyyy/MM/dd HH:mm:ss
|
static Double |
dateDoubleDiffMinutes(String dstart,
String dend)
Get the numerical (Double) difference in minutes between two date strings in the format yyyy/MM/dd HH:mm:ss
|
static Double |
dateDoubleDiffSeconds(String dstart,
String dend)
Get the numerical (Double) difference in seconds between two date strings in the format yyyy/MM/dd HH:mm:ss
|
static String |
getDateTime()
Get the actual date in the format yyyy/MM/dd HH:mm:ss
|
public static String getDateTime()
public static String dateDiffSeconds(String dstart, String dend)
dstart
- string in the format yyyy/MM/dd HH:mm:ssdend
- string in the format yyyy/MM/dd HH:mm:sspublic static Double dateDoubleDiffSeconds(String dstart, String dend)
dstart
- string in the format yyyy/MM/dd HH:mm:ssdend
- string in the format yyyy/MM/dd HH:mm:sspublic static String dateDiffMinutes(String dstart, String dend)
dstart
- string in the format yyyy/MM/dd HH:mm:ssdend
- string in the format yyyy/MM/dd HH:mm:sspublic static Double dateDoubleDiffMinutes(String dstart, String dend)
dstart
- string in the format yyyy/MM/dd HH:mm:ssdend
- string in the format yyyy/MM/dd HH:mm:sspublic static String dateDiffMillis(String dstart, String dend)
dstart
- string in the format yyyy/MM/dd HH:mm:ss.SSSdend
- string in the format yyyy/MM/dd HH:mm:ss.SSSCopyright © 2016. All rights reserved.