org.joda.convert.ToString类的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(164)

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

相关文章