public class TemplateDate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateDate.FORMATS |
| Modifier and Type | Field and Description |
|---|---|
static TemplateDate |
INSTANCE |
| Constructor and Description |
|---|
TemplateDate() |
TemplateDate(Date freezeTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
freezeTime() |
Date |
getDate() |
Date |
getDate(boolean forceCurrent) |
String |
getDate(String style) |
String |
getDate(String style,
String zone) |
String |
getDateAndTime() |
String |
getDateAndTime(String dateFormat,
String timeFormat) |
String |
getDay() |
DateDifference |
getDifferenceFromToday() |
String |
getMonth(int offset) |
String |
getMonthName() |
String |
getTime(String format) |
String |
getTime(String format,
String zone) |
String |
getYear() |
boolean |
isToday() |
String |
toString() |
public static final TemplateDate INSTANCE
public TemplateDate()
public TemplateDate(Date freezeTime)
public void freezeTime()
public Date getDate(boolean forceCurrent)
public Date getDate()
public DateDifference getDifferenceFromToday()
public String getDay()
public String getMonth(int offset)
public String getMonthName()
public String getYear()
public boolean isToday()
public String getDateAndTime()
Copyright © 2022. All rights reserved.