gpt4 book ai didi

org.eigenbase.util14.ZonelessTimestamp.getJdbcTimestamp()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 21:29:31 27 4
gpt4 key购买 nike

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

ZonelessTimestamp.getJdbcTimestamp介绍

暂无

代码示例

代码示例来源:origin: org.apache.optiq/optiq-core

public Object toJdbcObject() {
 return new Timestamp(getJdbcTimestamp(DateTimeUtil.DEFAULT_ZONE));
}

代码示例来源:origin: net.hydromatic/optiq

public Object toJdbcObject()
{
  return new Timestamp(getJdbcTimestamp(DateTimeUtil.defaultZone));
}

代码示例来源:origin: org.apache.optiq/optiq-core

/**
 * Converts this ZonelessTimestamp to a java.sql.Timestamp and formats it
 * via the {@link java.sql.Timestamp#toString() toString()} method of that
 * class.
 *
 * <p>Note: Jdbc formatting always includes a decimal point and at least one
 * digit of milliseconds precision. Trailing zeros, except for the first one
 * after the decimal point, do not appear in the output.
 *
 * @return the formatted time string
 */
public String toString() {
 Timestamp ts =
   getTempTimestamp(getJdbcTimestamp(DateTimeUtil.DEFAULT_ZONE));
 // Remove trailing '.0' so that format is consistent with SQL spec for
 // CAST(TIMESTAMP(0) TO VARCHAR). E.g. "1969-12-31 16:00:00.0"
 // becomes "1969-12-31 16:00:00"
 return ts.toString().substring(0, 19);
}

代码示例来源:origin: net.hydromatic/optiq

/**
 * Converts this ZonelessTimestamp to a java.sql.Timestamp and formats it
 * via the {@link java.sql.Timestamp#toString() toString()} method of that
 * class.
 *
 * <p>Note: Jdbc formatting always includes a decimal point and at least one
 * digit of milliseconds precision. Trailing zeros, except for the first one
 * after the decimal point, do not appear in the output.
 *
 * @return the formatted time string
 */
public String toString()
{
  Timestamp ts =
    getTempTimestamp(getJdbcTimestamp(DateTimeUtil.defaultZone));
  // Remove trailing '.0' so that format is consistent with SQL spec for
  // CAST(TIMESTAMP(0) TO VARCHAR). E.g. "1969-12-31 16:00:00.0"
  // becomes "1969-12-31 16:00:00"
  return ts.toString().substring(0, 19);
}

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