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