public class JDateFormat extends Object
For date format reference, see
Class SimpleDateFormat API at Oracle
For additional information of Json datetime format:
IBM Learn
DateFormat
.Constructor and Description |
---|
JDateFormat(SimpleDateFormat sdf) |
Modifier and Type | Method and Description |
---|---|
String |
format(Date d)
yyyy-MM-dd
|
static String |
getDayDiff(Date date2,
Date date1) |
static long |
getDayDiffInt(Date d2,
Date d1) |
String |
incSeconds(io.odysz.common.dbtype drvType,
String date0,
int snds) |
static JDateFormat |
iso8601()
yyyy-MM-dd'T'HH:mm:ss.SSSZ, e.g.
|
static JDateFormat |
iso8601Zh()
yyyy年MM月dd日'T'HH:mm:ss.SSSZ, e.g.
|
static JDateFormat |
Jdate()
yyyy-MM-dd
|
static JDateFormat |
JdateZh()
yyyy年MM月dd日
|
Date |
parse(String text) |
static JDateFormat |
simpleLong()
yyyy-MM-dd HH:mm:ss, e.g.
|
public JDateFormat(SimpleDateFormat sdf)
public static JDateFormat JdateZh()
public static JDateFormat Jdate()
public static JDateFormat iso8601Zh()
public static JDateFormat iso8601()
public static JDateFormat simpleLong()
public Date parse(String text) throws ParseException
ParseException
public String incSeconds(io.odysz.common.dbtype drvType, String date0, int snds) throws ParseException
ParseException
Copyright © 2024. All rights reserved.