本文整理了Java中org.threeten.bp.LocalTime.toString()
方法的一些代码示例,展示了LocalTime.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalTime.toString()
方法的具体详情如下:
包路径:org.threeten.bp.LocalTime
类名称:LocalTime
方法名:toString
[英]Outputs this time as a String, such as 10:15.
The output will be one of the following ISO-8601 formats:
The format used will be the shortest that outputs the full value of the time where the omitted parts are implied to be zero.
[中]这次以字符串形式输出,例如10:15。
输出将是以下ISO-8601格式之一:
*嗯
*HH:mm:ss
*HH:mm:ss。SSS
*HH:mm:ss。SSSS
*HH:mm:ss。SSSSSSSSS
所使用的格式将是最短的,用于输出省略部分暗示为零的时间的完整值。
代码示例来源:origin: com.torodb.torod.backends/postgresql
@Override
public Void visit(ScalarTime value, StringBuilder arg) {
arg.append('"')
//this prints the value on ISO-8601, which is the recommended format on PostgreSQL
.append(value.getValue().toString())
.append('"');
return null;
}
代码示例来源:origin: com.torodb.torod.backends/postgresql
@Override
public Void visit(ScalarTime value, StringBuilder arg) {
arg.append('\'')
//this prints the value on ISO-8601, which is the recommended format on PostgreSQL
.append(value.getValue().toString())
.append('\'');
return null;
}
代码示例来源:origin: com.torodb.torod/torod-core
@Override
public String toString() {
return getValue().toString();
}
代码示例来源:origin: com.torodb.torod.backends/greenplum
@Override
public Void visit(ScalarTime value, StringBuilder arg) {
arg.append('\'')
//this prints the value on ISO-8601, which is the recommended format on PostgreSQL
.append(value.getValue().toString())
.append('\'');
return null;
}
代码示例来源:origin: com.torodb.torod.backends/greenplum
@Override
public Void visit(ScalarTime value, StringBuilder arg) {
arg.append('"')
//this prints the value on ISO-8601, which is the recommended format on PostgreSQL
.append(value.getValue().toString())
.append('"');
return null;
}
代码示例来源:origin: com.torodb.kvdocument/kvdocument-core
@Override
public String toString() {
return getValue().toString();
}
代码示例来源:origin: ThreeTen/threetenbp
/**
* Outputs this time as a {@code String}, such as {@code 10:15:30+01:00}.
* <p>
* The output will be one of the following ISO-8601 formats:
* <p><ul>
* <li>{@code HH:mmXXXXX}</li>
* <li>{@code HH:mm:ssXXXXX}</li>
* <li>{@code HH:mm:ss.SSSXXXXX}</li>
* <li>{@code HH:mm:ss.SSSSSSXXXXX}</li>
* <li>{@code HH:mm:ss.SSSSSSSSSXXXXX}</li>
* </ul><p>
* The format used will be the shortest that outputs the full value of
* the time where the omitted parts are implied to be zero.
*
* @return a string representation of this time, not null
*/
@Override
public String toString() {
return time.toString() + offset.toString();
}
代码示例来源:origin: ThreeTen/threetenbp
/**
* Outputs this date-time as a {@code String}, such as {@code 2007-12-23T10:15:30}.
* <p>
* The output will be one of the following ISO-8601 formats:
* <p><ul>
* <li>{@code yyyy-MM-dd'T'HH:mm}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSS}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSS}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS}</li>
* </ul><p>
* The format used will be the shortest that outputs the full value of
* the time where the omitted parts are implied to be zero.
*
* @return a string representation of this date-time, not null
*/
@Override
public String toString() {
return date.toString() + 'T' + time.toString();
}
代码示例来源:origin: org.threeten/threetenbp
/**
* Outputs this time as a {@code String}, such as {@code 10:15:30+01:00}.
* <p>
* The output will be one of the following ISO-8601 formats:
* <p><ul>
* <li>{@code HH:mmXXXXX}</li>
* <li>{@code HH:mm:ssXXXXX}</li>
* <li>{@code HH:mm:ss.SSSXXXXX}</li>
* <li>{@code HH:mm:ss.SSSSSSXXXXX}</li>
* <li>{@code HH:mm:ss.SSSSSSSSSXXXXX}</li>
* </ul><p>
* The format used will be the shortest that outputs the full value of
* the time where the omitted parts are implied to be zero.
*
* @return a string representation of this time, not null
*/
@Override
public String toString() {
return time.toString() + offset.toString();
}
代码示例来源:origin: org.threeten/threetenbp
/**
* Outputs this date-time as a {@code String}, such as {@code 2007-12-03T10:15:30}.
* <p>
* The output will be one of the following ISO-8601 formats:
* <p><ul>
* <li>{@code yyyy-MM-dd'T'HH:mm}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSS}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSS}</li>
* <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS}</li>
* </ul><p>
* The format used will be the shortest that outputs the full value of
* the time where the omitted parts are implied to be zero.
*
* @return a string representation of this date-time, not null
*/
@Override
public String toString() {
return date.toString() + 'T' + time.toString();
}
代码示例来源:origin: ThreeTen/threetenbp
/**
* Outputs this date-time as a {@code String}.
* <p>
* The output will include the full local date-time and the chronology ID.
*
* @return a string representation of this date-time, not null
*/
@Override
public String toString() {
return toLocalDate().toString() + 'T' + toLocalTime().toString();
}
代码示例来源:origin: org.threeten/threetenbp
/**
* Outputs this date-time as a {@code String}.
* <p>
* The output will include the full local date-time and the chronology ID.
*
* @return a string representation of this date-time, not null
*/
@Override
public String toString() {
return toLocalDate().toString() + 'T' + toLocalTime().toString();
}
代码示例来源:origin: guanpj/JReadHub
mTopicBean.getFormattedPublishDate().toLocalTime().toString().substring(0, 8));
} else {
mTxtTopicTime.setVisibility(View.GONE);
内容来源于网络,如有侵权,请联系作者删除!