|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.test4j.tools.commons.DateHelper
public class DateHelper
| 构造方法摘要 | |
|---|---|
DateHelper()
|
|
| 方法摘要 | |
|---|---|
static String |
currDateStr()
返回当前日期的默认格式("yyyy-MM-dd")字符串 |
static String |
currDateTimeStr()
返回当前日期时间的默认格式("yyyy-MM-dd mm:hh:SS")字符串 |
static String |
currDateTimeStr(String format)
返回当前时间的格式化字符串 |
static SimpleDateFormat |
getDateFormat(String input)
|
static Date |
now()
|
static Date |
parse(String str)
|
static String |
toDateTimeStr(Date date,
String format)
返回指定时间的格式化字符串 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DateHelper()
| 方法详细信息 |
|---|
public static final String currDateStr()
public static final String currDateTimeStr()
public static final String currDateTimeStr(String format)
format -
public static final String toDateTimeStr(Date date,
String format)
format -
public static final Date now()
public static final SimpleDateFormat getDateFormat(String input)
public static final Date parse(String str)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||