gpt4 book ai didi

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

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

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

ZonelessDate.getTempDate介绍

[英]Gets a temporary Date object. The same object is returned every time.
[中]获取一个临时日期对象。每次都返回相同的对象。

代码示例

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

/**
 * Converts this ZonelessDate to a java.sql.Date and formats it via the
 * {@link java.sql.Date#toString() toString()} method of that class.
 *
 * @return the formatted date string
 */
public String toString()
{
  Date jdbcDate = getTempDate(getJdbcDate(DateTimeUtil.defaultZone));
  return jdbcDate.toString();
}

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

/**
 * Converts this ZonelessDate to a java.sql.Date and formats it via the
 * {@link java.sql.Date#toString() toString()} method of that class.
 *
 * @return the formatted date string
 */
public String toString() {
 Date jdbcDate = getTempDate(getJdbcDate(DateTimeUtil.DEFAULT_ZONE));
 return jdbcDate.toString();
}

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

/**
 * Formats this ZonelessDate via a SimpleDateFormat
 *
 * @param format format string, as required by {@link SimpleDateFormat}
 * @return the formatted date string
 */
public String toString(String format) {
 DateFormat formatter = getFormatter(format);
 Date jdbcDate = getTempDate(getTime());
 return formatter.format(jdbcDate);
}

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

/**
 * Formats this ZonelessDate via a SimpleDateFormat
 *
 * @param format format string, as required by {@link SimpleDateFormat}
 *
 * @return the formatted date string
 */
public String toString(String format)
{
  DateFormat formatter = getFormatter(format);
  Date jdbcDate = getTempDate(getTime());
  return formatter.format(jdbcDate);
}

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