org.eigenbase.util14.ZonelessTime.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(117)

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

ZonelessTime.<init>介绍

[英]Constructs a ZonelessTime
[中]构建一个无区域的时间

代码示例

代码示例来源:origin: cascading/lingual-core

protected ZonelessTime createInstance()
 {
 return new ZonelessTime();
 }

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

/**
 * Converts this literal to a {@link ZonelessTime} object.
 */
protected ZonelessTime getTime() {
 ZonelessTime zt = new ZonelessTime();
 zt.setZonelessTime(getCal().getTimeInMillis());
 return zt;
}

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

/**
 * Converts this literal to a {@link ZonelessTime} object.
 */
protected ZonelessTime getTime()
{
  ZonelessTime zt = new ZonelessTime();
  zt.setZonelessTime(getCal().getTimeInMillis());
  return zt;
}

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

/**
 * Parses a string as a ZonelessTime using a given format string.
 *
 * @param s      a string representing a time the given format
 * @param format format string as per {@link SimpleDateFormat}
 * @return the parsed time, or null if parsing failed
 */
public static ZonelessTime parse(String s, String format) {
 DateTimeUtil.PrecisionTime pt =
   DateTimeUtil.parsePrecisionDateTimeLiteral(
     s,
     format,
     DateTimeUtil.GMT_ZONE);
 if (pt == null) {
  return null;
 }
 ZonelessTime zt = new ZonelessTime(pt.getPrecision());
 zt.setZonelessTime(pt.getCalendar().getTime().getTime());
 return zt;
}

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

/**
 * Parses a string as a ZonelessTime using a given format string.
 *
 * @param s a string representing a time the given format
 * @param format format string as per {@link SimpleDateFormat}
 *
 * @return the parsed time, or null if parsing failed
 */
public static ZonelessTime parse(String s, String format)
{
  DateTimeUtil.PrecisionTime pt =
    DateTimeUtil.parsePrecisionDateTimeLiteral(
      s,
      format,
      DateTimeUtil.gmtZone);
  if (pt == null) {
    return null;
  }
  ZonelessTime zt = new ZonelessTime(pt.getPrecision());
  zt.setZonelessTime(pt.getCalendar().getTime().getTime());
  return zt;
}

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

break;
case TIME:
 printDatetime(pw, new ZonelessTime(), value);
 break;
case TIMESTAMP:

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

break;
case TIME:
  printDatetime(pw, new ZonelessTime(), value);
  break;
case TIMESTAMP:

相关文章