本文整理了Java中org.joda.convert.ToString
类的一些代码示例,展示了ToString
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ToString
类的具体详情如下:
包路径:org.joda.convert.ToString
类名称:ToString
暂无
代码示例来源:origin: joda-time/joda-time
/**
* Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSS).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.dateTime().print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the date time in ISO8601 format (yyyy-MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.date().print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the time in ISO8601 format (HH:mm:ss.SSS).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.time().print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the year-month in ISO8601 format (yyyy-MM).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.yearMonth().print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the month-day in ISO8601 format (--MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
List<DateTimeFieldType> fields = new ArrayList<DateTimeFieldType>();
fields.add(DateTimeFieldType.monthOfYear());
fields.add(DateTimeFieldType.dayOfMonth());
return ISODateTimeFormat.forFields(fields, true, true).print(this);
}
代码示例来源:origin: prestodb/presto
/**
* Gets the ID of this datetime zone.
*
* @return the ID of this datetime zone
*/
@ToString
public final String getID() {
return iID;
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the date time in ISO8601 format (yyyy-MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.date().print(this);
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the time in ISO8601 format (HH:mm:ss.SSS).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.time().print(this);
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the year-month in ISO8601 format (yyyy-MM).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.yearMonth().print(this);
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the month-day in ISO8601 format (--MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
List<DateTimeFieldType> fields = new ArrayList<DateTimeFieldType>();
fields.add(DateTimeFieldType.monthOfYear());
fields.add(DateTimeFieldType.dayOfMonth());
return ISODateTimeFormat.forFields(fields, true, true).print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Gets the ID of this datetime zone.
*
* @return the ID of this datetime zone
*/
@ToString
public final String getID() {
return iID;
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).
*
* @return ISO8601 time formatted string, not null
*/
@ToString
public String toString() {
return ISODateTimeFormat.dateTime().print(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Output the date time in ISO8601 format (yyyy-MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.date().print(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Output the time in ISO8601 format (HH:mm:ss.SSSZZ).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.time().print(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Output the year-month in ISO8601 format (yyyy-MM).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.yearMonth().print(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Output the month-day in ISO8601 format (--MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
List<DateTimeFieldType> fields = new ArrayList<DateTimeFieldType>();
fields.add(DateTimeFieldType.monthOfYear());
fields.add(DateTimeFieldType.dayOfMonth());
return ISODateTimeFormat.forFields(fields, true, true).print(this);
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Gets the ID of this datetime zone.
*
* @return the ID of this datetime zone
*/
@ToString
public final String getID() {
return iID;
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSS).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.dateTime().print(this);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Output the date time in ISO8601 format (yyyy-MM-dd).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.date().print(this);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Output the time in ISO8601 format (HH:mm:ss.SSS).
*
* @return ISO8601 time formatted string.
*/
@ToString
public String toString() {
return ISODateTimeFormat.time().print(this);
}
内容来源于网络,如有侵权,请联系作者删除!