gpt4 book ai didi

org.joda.time.YearMonthDay.toDateTimeAtCurrentTime()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 09:18:40 28 4
gpt4 key购买 nike

本文整理了Java中org.joda.time.YearMonthDay.toDateTimeAtCurrentTime()方法的一些代码示例,展示了YearMonthDay.toDateTimeAtCurrentTime()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YearMonthDay.toDateTimeAtCurrentTime()方法的具体详情如下:
包路径:org.joda.time.YearMonthDay
类名称:YearMonthDay
方法名:toDateTimeAtCurrentTime

YearMonthDay.toDateTimeAtCurrentTime介绍

[英]Converts this partial to a full datetime using the default time zone setting the date fields from this instance and the time fields from the current time.
[中]使用默认时区设置此实例的日期字段和当前时间的时间字段,将此部分日期时间转换为完整日期时间。

代码示例

代码示例来源:origin: JodaOrg/joda-time

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: joda-time/joda-time

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: redfish64/TinyTravelTracker

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: org.joda/com.springsource.org.joda.time

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: Nextdoor/bender

/**
 * Converts this partial to a full datetime using the default time zone
 * setting the date fields from this instance and the time fields from
 * the current time.
 *
 * @return this date as a datetime with the time as the current time
 */
public DateTime toDateTimeAtCurrentTime() {
  return toDateTimeAtCurrentTime(null);
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public DateTime getFinalSituationDate() {
  if (finalSituationDate == null) {
    return getSituationDate().toDateTimeAtCurrentTime();
  }
  return finalSituationDate;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public Date getEndDateInDateType() {
  return (getEndDate() != null) ? getEndDate().toDateTimeAtCurrentTime().toDate() : null;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public Date getBeginDateInDateType() {
  return (getBeginDate() != null) ? getBeginDate().toDateTimeAtCurrentTime().toDate() : null;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

public void setStateDate(final YearMonthDay ymd) {
  if (ymd == null) {
    setStateDateTime(null);
    return;
  }
  setStateDateTime(new YearMonthDay().equals(ymd) ? ymd.toDateTimeAtCurrentTime() : ymd.toDateTimeAtMidnight());
}

代码示例来源:origin: FenixEdu/fenixedu-academic

private int getNumberOfApprovedCourses(final Student student) {
  Collection<ICurriculumEntry> entries =
      student.getLastActiveRegistration()
          .getCurriculum(getExecutionSemester().getEndDateYearMonthDay().toDateTimeAtCurrentTime(),
              getExecutionSemester().getExecutionYear(), null).getCurriculumEntries();
  return entries.size() * 20;
}

代码示例来源:origin: FenixEdu/fenixedu-academic

private BigDecimal getApprovedECTS(final Student student) {
  return student
      .getLastActiveRegistration()
      .getCurriculum(getExecutionSemester().getEndDateYearMonthDay().toDateTimeAtCurrentTime(),
          getExecutionSemester().getExecutionYear(), null).getSumEctsCredits();
}

代码示例来源:origin: FenixEdu/fenixedu-academic

private int getApprovedGradeValuesSum(final Student student) {
  Collection<ICurriculumEntry> entries =
      student.getLastActiveRegistration()
          .getCurriculum(getExecutionSemester().getEndDateYearMonthDay().toDateTimeAtCurrentTime(),
              getExecutionSemester().getExecutionYear(), null).getCurriculumEntries();
  BigDecimal sum = new BigDecimal(0d);
  for (final ICurriculumEntry entry : entries) {
    if (entry.getGrade().isNumeric()) {
      final BigDecimal weigth = entry.getWeigthForCurriculum();
      if (GradeScale.TYPE20 == entry.getGrade().getGradeScale()) {
        sum = sum.add(entry.getGrade().getNumericValue());
      }
    }
  }
  return sum.intValue();
}

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