
commons.box.util.Dates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-box-app Show documentation
Show all versions of commons-box-app Show documentation
Common utils for BOX projects.
The newest version!
package commons.box.util;
import org.apache.commons.lang3.time.FastDateFormat;
import javax.annotation.Nonnull;
import java.util.Locale;
import java.util.TimeZone;
/**
* 创建作者:xingxiuyi
* 版权所属:xingxiuyi
*/
public class Dates {
/**
* Fmts.fmtDate 方法快捷方式
*
* @param pattern
* @return
* @see Fmts#date(String)
*/
@Nonnull
public static FastDateFormat fmt(String pattern) {
return Fmts.date(pattern);
}
/**
* Fmts.fmtDate 方法快捷方式
*
* @param pattern
* @param timeZone
* @param locale
* @return
* @see Fmts#date(String, TimeZone, Locale)
*/
@Nonnull
public static FastDateFormat fmt(String pattern, TimeZone timeZone, Locale locale) {
return Fmts.date(pattern, timeZone, locale);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy