本文整理了Java中org.datacleaner.util.convert.YesterdayDate
类的一些代码示例,展示了YesterdayDate
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesterdayDate
类的具体详情如下:
包路径:org.datacleaner.util.convert.YesterdayDate
类名称:YesterdayDate
[英]Special date value "YESTERDAY()", meaning the day before today, at midnight.
[中]特殊日期值“昨天()”,表示前天午夜。
代码示例来源:origin: datacleaner/DataCleaner
public YesterdayDate() {
super(calculateMillis());
}
代码示例来源:origin: datacleaner/DataCleaner
public Date getValue() {
if (_dateNowRadio.isSelected()) {
return new NowDate();
} else if (_dateTodayRadio.isSelected()) {
return new TodayDate();
} else if (_dateYesterdayRadio.isSelected()) {
return new YesterdayDate();
} else if (_todayPlusRadio.isSelected()) {
return new ShiftedToday(_todayPlusTextField.getText());
} else {
return _datePicker.getDate();
}
}
代码示例来源:origin: datacleaner/DataCleaner
return new YesterdayDate();
代码示例来源:origin: datacleaner/DataCleaner
private Date getDynamicValue(final Date date) {
if (date instanceof NowDate) {
return new NowDate();
} else if (date instanceof TodayDate) {
return new TodayDate();
} else if (date instanceof YesterdayDate) {
return new YesterdayDate();
} else if (date instanceof ShiftedToday) {
return new ShiftedToday(((ShiftedToday) date).getInput());
} else {
return date;
}
}
内容来源于网络,如有侵权,请联系作者删除!