gpt4 book ai didi

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

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

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

XMLGregorianCalendarImpl.getMillisecond介绍

[英]Return millisecond precision of #getFractionalSecond().

This method represents a convenience accessor to infinite precision fractional second value returned by #getFractionalSecond(). The returned value is the rounded down to milliseconds value of #getFractionalSecond(). When #getFractionalSecond()returns null, this method must return DatatypeConstants#FIELD_UNDEFINED.

Value constraints for this value are summarized in second field of date/time field mapping table.
[中]返回#GetFractilSecond()的毫秒精度。
此方法表示对#GetFractilSecond()返回的无限精度分数秒值的方便访问器。返回的值是#GetFractilSecond()的四舍五入到毫秒的值。当#getFractilSecond()返回[$0$]时,此方法必须返回DatatypeConstants#字段_UNDEFINED。
此值的值约束汇总在second field of date/time field mapping table中。

代码示例

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

result.set(Calendar.MILLISECOND, getMillisecond());

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

result.set(Calendar.MILLISECOND, getMillisecond());

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

/**
 * <p>Normalize this instance to UTC.</p>
 *
 * <p>2000-03-04T23:00:00+03:00 normalizes to 2000-03-04T20:00:00Z</p>
 * <p>Implements W3C XML Schema Part 2, Section 3.2.7.3 (A).</p>
 */
public XMLGregorianCalendar normalize() {
  XMLGregorianCalendar normalized = normalizeToTimezone(timezone);
  // if timezone was undefined, leave it undefined
  if (getTimezone() == DatatypeConstants.FIELD_UNDEFINED) {
    normalized.setTimezone(DatatypeConstants.FIELD_UNDEFINED);
  }
  // if milliseconds was undefined, leave it undefined
  if (getMillisecond() == DatatypeConstants.FIELD_UNDEFINED) {
    normalized.setMillisecond(DatatypeConstants.FIELD_UNDEFINED);
  }
  return normalized;
}

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

/**
 * <p>Normalize this instance to UTC.</p>
 *
 * <p>2000-03-04T23:00:00+03:00 normalizes to 2000-03-04T20:00:00Z</p>
 * <p>Implements W3C XML Schema Part 2, Section 3.2.7.3 (A).</p>
 */
public XMLGregorianCalendar normalize() {
  XMLGregorianCalendar normalized = normalizeToTimezone(timezone);
  // if timezone was undefined, leave it undefined
  if (getTimezone() == DatatypeConstants.FIELD_UNDEFINED) {
    normalized.setTimezone(DatatypeConstants.FIELD_UNDEFINED);
  }
  // if milliseconds was undefined, leave it undefined
  if (getMillisecond() == DatatypeConstants.FIELD_UNDEFINED) {
    normalized.setMillisecond(DatatypeConstants.FIELD_UNDEFINED);
  }
  return normalized;
}

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

result.set(Calendar.MILLISECOND, getMillisecond());
} else {

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

result.set(Calendar.MILLISECOND, getMillisecond());
} else {

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