gpt4 book ai didi

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

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

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

YearMonthDay.toDateMidnight介绍

[英]Converts this object to a DateMidnight in the default time zone.
[中]将此对象转换为默认时区中的DateMidnight。

代码示例

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

/**
 * Converts this object to a DateMidnight in the default time zone.
 *
 * @return the DateMidnight instance in the default zone
 */
public DateMidnight toDateMidnight() {
  return toDateMidnight(null);
}

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

/**
 * Converts this object to a DateMidnight in the default time zone.
 *
 * @return the DateMidnight instance in the default zone
 */
public DateMidnight toDateMidnight() {
  return toDateMidnight(null);
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

/**
 * Converts this object to a DateMidnight in the default time zone.
 *
 * @return the DateMidnight instance in the default zone
 */
public DateMidnight toDateMidnight() {
  return toDateMidnight(null);
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

/**
 * Converts this object to a DateMidnight in the default time zone.
 *
 * @return the DateMidnight instance in the default zone
 */
public DateMidnight toDateMidnight() {
  return toDateMidnight(null);
}

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

/**
 * Converts this object to a DateMidnight in the default time zone.
 *
 * @return the DateMidnight instance in the default zone
 */
public DateMidnight toDateMidnight() {
  return toDateMidnight(null);
}

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

@Deprecated
public static Interval getInterval(YearMonthDay startDate, YearMonthDay endDate) {
  long start = startDate == null ? Long.MIN_VALUE : startDate.toDateMidnight().getMillis();
  long end = endDate == null ? Long.MAX_VALUE : endDate.toDateMidnight().toDateTime().withTime(23, 59, 59, 999).getMillis();
  return new Interval(start, end);
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

/**
 * Converts this object to an Interval representing the whole day.
 *
 * @param zone  the zone to get the Interval in, null means default
 * @return a interval over the day
 */
public Interval toInterval(DateTimeZone zone) {
  zone = DateTimeUtils.getZone(zone);
  return toDateMidnight(zone).toInterval();
}

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

@Deprecated
public static Interval intervalWithStart(Interval originalInterval, YearMonthDay day) {
  long millis = day.toDateMidnight().getMillis();
  return new Interval(millis, originalInterval.getEndMillis());
}

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

public boolean overlapsInterval(final Interval interval) {
  final DateMidnight begin = getBeginDateYearMonthDay().toDateMidnight();
  final DateMidnight end = getEndDateYearMonthDay().plusDays(1).toDateMidnight();
  return new Interval(begin, end).overlaps(interval);
}

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

public boolean containsDate(final DateTime dateTime) {
  final DateMidnight begin = getBeginDateYearMonthDay().toDateMidnight();
  final DateMidnight end = getEndDateYearMonthDay().plusDays(1).toDateMidnight();
  return new Interval(begin, end).contains(dateTime);
}

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

public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index) throws HibernateException, SQLException {
  if (value == null) {
    StandardBasicTypes.DATE.nullSafeSet(preparedStatement, null, index);
  } else {
    StandardBasicTypes.DATE.nullSafeSet(preparedStatement, ((YearMonthDay) value).toDateMidnight().toDate(), index);
  }
}

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

@Override
protected Money calculatePenaltyAmount(Event event, DateTime when, BigDecimal discountPercentage) {
  if (when.toDateMidnight().compareTo(getWhenStartToApplyPenalty().toDateMidnight()) >= 0) {
    return new Money(calculateMonthPenalty(event, discountPercentage).multiply(
        new BigDecimal(getNumberOfMonthsToChargePenalty(when))));
  } else {
    return Money.ZERO;
  }
}

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

public Date getBegginingOfLessonPeriod(final ExecutionSemester executionSemester, final ExecutionDegree executionDegree) {
  if (executionSemester != null) {
    OccupationPeriod op = executionDegree.getPeriodLessons(executionSemester);
    return op.getStartYearMonthDay().toDateMidnight().toDate();
  } else {
    throw new DomainException("unsupported.execution.period.semester");
  }
}

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

public Date getEndOfExamsPeriod(final ExecutionSemester executionSemester, final ExecutionDegree executionDegree) {
  if (executionSemester != null) {
    OccupationPeriod op = executionDegree.getPeriodLessons(executionSemester);
    return op.getEndYearMonthDay().toDateMidnight().toDate();
  } else {
    throw new DomainException("unsupported.execution.period.semester");
  }
}

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