Example usage for org.joda.time.format DateTimeFormatter withLocale

List of usage examples for org.joda.time.format DateTimeFormatter withLocale

Introduction

In this page you can find the example usage for org.joda.time.format DateTimeFormatter withLocale.

Prototype

public DateTimeFormatter withLocale(Locale locale) 

Source Link

Document

Returns a new formatter with a different locale that will be used for printing and parsing.

Usage

From source file:ru.caramel.juniperbot.core.message.resolver.DateTimePlaceholderResolver.java

License:Open Source License

public String format(DateTimeFormatter baseFormatter) {
    return baseFormatter.withLocale(locale).withZone(getTimeZone()).print(dateTime);
}