org.datacleaner.util.convert.YesterdayDate类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.datacleaner.util.convert.YesterdayDate类的一些代码示例,展示了YesterdayDate类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesterdayDate类的具体详情如下:
包路径:org.datacleaner.util.convert.YesterdayDate
类名称: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;
  }
}

相关文章

YesterdayDate类方法