gpt4 book ai didi

com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl.getEonAndYear()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 23:05:05 35 4
gpt4 key购买 nike

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

XMLGregorianCalendarImpl.getEonAndYear介绍

[英]Return XML Schema 1.0 dateTime datatype field for year.

Value constraints for this value are summarized in year field of date/time field mapping table.
[中]返回year的XML Schema 1.0 dateTime数据类型字段。
此值的值约束汇总在year field of date/time field mapping table中。

代码示例

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

/**
 * <p>Creates and returns a copy of this object.</p>
 *
 * @return copy of this <code>Object</code>
 */
public Object clone() {
  // Both this.eon and this.fractionalSecond are instances
  // of immutable classes, so they do not need to be cloned.
  return new XMLGregorianCalendarImpl(getEonAndYear(),
          this.month, this.day,
    this.hour, this.minute, this.second,
    this.fractionalSecond,
    this.timezone);
}

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

/**
 * <p>Creates and returns a copy of this object.</p>
 *
 * @return copy of this <code>Object</code>
 */
public Object clone() {
  // Both this.eon and this.fractionalSecond are instances
  // of immutable classes, so they do not need to be cloned.
  return new XMLGregorianCalendarImpl(getEonAndYear(),
          this.month, this.day,
    this.hour, this.minute, this.second,
    this.fractionalSecond,
    this.timezone);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

BigInteger year = getEonAndYear();
if (year != null) {
  result.set(Calendar.ERA, year.signum() == -1 ? GregorianCalendar.BC : GregorianCalendar.AD);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

BigInteger year = getEonAndYear();
if (year != null) {
  result.set(Calendar.ERA, year.signum() == -1 ? GregorianCalendar.BC : GregorianCalendar.AD);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

String s = getEonAndYear().toString();

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

BigInteger year = getEonAndYear();
if (year != null) {
  result.set(Calendar.ERA, year.signum() == -1 ? GregorianCalendar.BC : GregorianCalendar.AD);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

String s = getEonAndYear().toString();

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

BigInteger year = getEonAndYear();
if (year != null) {
  result.set(Calendar.ERA, year.signum() == -1 ? GregorianCalendar.BC : GregorianCalendar.AD);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

maxDays = maximumDayInMonthFor(year,getMonth());
  } else {
    BigInteger years = getEonAndYear();
    if (years != null) {
      maxDays = maximumDayInMonthFor(getEonAndYear(), DatatypeConstants.FEBRUARY);
BigInteger yearField = getEonAndYear();
if (yearField != null) {
int result = compareField(yearField, BigInteger.ZERO);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

maxDays = maximumDayInMonthFor(year,getMonth());
  } else {
    BigInteger years = getEonAndYear();
    if (years != null) {
      maxDays = maximumDayInMonthFor(getEonAndYear(), DatatypeConstants.FEBRUARY);
BigInteger yearField = getEonAndYear();
if (yearField != null) {
int result = compareField(yearField, BigInteger.ZERO);

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

BigInteger startYear = getEonAndYear();
if (startYear == null) {
  fieldUndefined[YEAR] = true;
int maxDayInMonth = maximumDayInMonthFor(getEonAndYear(), getMonth());
if (startDay > maxDayInMonth) {
  tempDays = BigInteger.valueOf(maxDayInMonth);
      mdimf = BigInteger.valueOf(maximumDayInMonthFor(getEonAndYear(), getMonth() - 1));
    } else {
      mdimf = BigInteger.valueOf(maximumDayInMonthFor(getEonAndYear().subtract(BigInteger.valueOf((long) 1)), 12));
  } else if (endDays.compareTo(BigInteger.valueOf(maximumDayInMonthFor(getEonAndYear(), getMonth()))) > 0) {
    endDays = endDays.add(BigInteger.valueOf(-maximumDayInMonthFor(getEonAndYear(), getMonth())));
    monthCarry = 1;
  } else {
    setYear(getEonAndYear().add(BigInteger.valueOf(quotient)));

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

BigInteger startYear = getEonAndYear();
if (startYear == null) {
  fieldUndefined[YEAR] = true;
int maxDayInMonth = maximumDayInMonthFor(getEonAndYear(), getMonth());
if (startDay > maxDayInMonth) {
  tempDays = BigInteger.valueOf(maxDayInMonth);
      mdimf = BigInteger.valueOf(maximumDayInMonthFor(getEonAndYear(), getMonth() - 1));
    } else {
      mdimf = BigInteger.valueOf(maximumDayInMonthFor(getEonAndYear().subtract(BigInteger.valueOf((long) 1)), 12));
  } else if (endDays.compareTo(BigInteger.valueOf(maximumDayInMonthFor(getEonAndYear(), getMonth()))) > 0) {
    endDays = endDays.add(BigInteger.valueOf(-maximumDayInMonthFor(getEonAndYear(), getMonth())));
    monthCarry = 1;
  } else {
    setYear(getEonAndYear().add(BigInteger.valueOf(quotient)));

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