本文整理了Java中org.joda.time.YearMonth.toString()
方法的一些代码示例,展示了YearMonth.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YearMonth.toString()
方法的具体详情如下:
包路径:org.joda.time.YearMonth
类名称:YearMonth
方法名:toString
[英]Output the year-month in ISO8601 format (yyyy-MM).
[中]以ISO8601格式(yyyy-MM)输出年-月。
代码示例来源:origin: spring-projects/spring-framework
@Override
public String print(YearMonth object, Locale locale) {
return object.toString();
}
代码示例来源:origin: org.springframework/spring-context
@Override
public String print(YearMonth object, Locale locale) {
return object.toString();
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: joda-time/joda-time
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @param locale Locale to use, null means default
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern, Locale locale) throws IllegalArgumentException {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this);
}
代码示例来源:origin: JodaOrg/joda-time
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @param locale Locale to use, null means default
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern, Locale locale) throws IllegalArgumentException {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: camunda/camunda-bpm-platform
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @param locale Locale to use, null means default
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern, Locale locale) throws IllegalArgumentException {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this);
}
代码示例来源:origin: org.jadira.usertype/usertype.core
@Override
public String toNonNullValue(YearMonth value) {
return value.toString();
}
}
代码示例来源:origin: redfish64/TinyTravelTracker
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.joda-time
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: Nextdoor/bender
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern) {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).print(this);
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @param locale Locale to use, null means default
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern, Locale locale) throws IllegalArgumentException {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this);
}
代码示例来源:origin: Nextdoor/bender
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @param locale Locale to use, null means default
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern, Locale locale) throws IllegalArgumentException {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
/**
* Output the year-month using the specified format pattern.
*
* @param pattern the pattern specification, null means use <code>toString</code>
* @param locale Locale to use, null means default
* @see org.joda.time.format.DateTimeFormat
*/
public String toString(String pattern, Locale locale) throws IllegalArgumentException {
if (pattern == null) {
return toString();
}
return DateTimeFormat.forPattern(pattern).withLocale(locale).print(this);
}
代码示例来源:origin: pl.edu.icm.synat/synat-console-core
private void generateTableHeadersRow(Sheet reportSheet, int rowNum, ReportType type, ReportAggregation aggregation, Date intervalFrom, Date intervalTo) {
CellStyle cellStyle = createBorderedBoldBlueStyle(reportSheet.getWorkbook(), BLUE_BOLD_BORDERED);
int columns = getReportBaseColumnsCount(type, aggregation);
Row row = generateRow(reportSheet, rowNum, columns, cellStyle, type, aggregation);
int cellNum = row.getLastCellNum();
List<YearMonth> months = getMonths(intervalFrom, intervalTo);
for (YearMonth month : months) {
createCell(cellNum++, row, cellStyle, month.toString(MONTH_PATTERN));
}
}
内容来源于网络,如有侵权,请联系作者删除!