gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 04:37:31 26 4
gpt4 key购买 nike

本文整理了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;
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com