gpt4 book ai didi

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

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

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

XMLGregorianCalendarImpl.getSecond介绍

[英]Return seconds or DatatypeConstants#FIELD_UNDEFINED.

Returns DatatypeConstants#FIELD_UNDEFINED if this field is not defined. When this field is not defined, the optional xs:dateTime fractional seconds field, represented by #getFractionalSecond() and #getMillisecond(), must not be defined.

Value constraints for this value are summarized in second field of date/time field mapping table.
[中]返回秒或DatatypeConstants#字段_未定义。
如果未定义此字段,则返回DatatypeConstants#FIELD_UNDEFINED。如果未定义此字段,则不能定义可选的xs:dateTime分数秒字段,该字段由#getFractilSecond()和#getMillisSecond()表示。
此值的值约束汇总在second field of date/time field mapping table中。

代码示例

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

break;
case 's':
  bufPtr = print2Number(buf,bufPtr,getSecond());
  if (getFractionalSecond() != null) {

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

if (getSecond() == DatatypeConstants.FIELD_UNDEFINED) {
  fieldUndefined[SECOND] = true;
  startSeconds = DECIMAL_ZERO;
BigDecimal tempFracSeconds = endSeconds.subtract(new BigDecimal(BigInteger.valueOf((long) getSecond())));
if (tempFracSeconds.compareTo(DECIMAL_ZERO) < 0) {
  setFractionalSecond(DECIMAL_ONE.add(tempFracSeconds));
  if (getSecond() == 0) {
    setSecond(59);
    carry = carry.subtract(BigInteger.ONE);
  } else {
    setSecond(getSecond() - 1);

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

if (getSecond() == DatatypeConstants.FIELD_UNDEFINED) {
  fieldUndefined[SECOND] = true;
  startSeconds = DECIMAL_ZERO;
BigDecimal tempFracSeconds = endSeconds.subtract(new BigDecimal(BigInteger.valueOf((long) getSecond())));
if (tempFracSeconds.compareTo(DECIMAL_ZERO) < 0) {
  setFractionalSecond(DECIMAL_ONE.add(tempFracSeconds));
  if (getSecond() == 0) {
    setSecond(59);
    carry = carry.subtract(BigInteger.ONE);
  } else {
    setSecond(getSecond() - 1);

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

break;
case 's':
  bufPtr = print2Number(buf,bufPtr,getSecond());
  if (getFractionalSecond() != null) {

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

private void testHour() {
  // http://www.w3.org/2001/05/xmlschema-errata#e2-45
  if (getHour() == 24) {
    if (getMinute() != 0
        || getSecond() != 0) {
      invalidFieldValue(HOUR, getHour());
    }
    // while 0-24 is acceptable in the lexical space, 24 is not valid in value space
    // W3C XML Schema Part 2, Section 3.2.7.1
    setHour(0, false);
    add(new DurationImpl(true, 0, 0, 1, 0, 0, 0));
  }
}

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

private void testHour() {
  // http://www.w3.org/2001/05/xmlschema-errata#e2-45
  if (getHour() == 24) {
    if (getMinute() != 0
        || getSecond() != 0) {
      invalidFieldValue(HOUR, getHour());
    }
    // while 0-24 is acceptable in the lexical space, 24 is not valid in value space
    // W3C XML Schema Part 2, Section 3.2.7.1
    setHour(0, false);
    add(new DurationImpl(true, 0, 0, 1, 0, 0, 0));
  }
}

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

if(getMinute() != 0) {
return false;
} else if (getSecond() != 0) {
return false;

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

if(getMinute() != 0) {
return false;
} else if (getSecond() != 0) {
return false;

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