com.iwuyc.tools.commons.util.time.DateFormatterConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iwuyc-common Show documentation
Show all versions of iwuyc-common Show documentation
Common tools.Include utility classes,and much much more.
The newest version!
package com.iwuyc.tools.commons.util.time;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.util.Locale;
/**
* Date Formatter Pattern
*
* @author Neil
*/
public interface DateFormatterConstants {
String DEFAULT_PATTERN = DateTimeFormatterPattern.TIMEZONE_LONG_DATE_SECOND_FORMATTER;
Locale DEFAULT_LOCALE = Locale.getDefault();
ZoneId DEFAULT_ZONE_ID = ZoneId.systemDefault();
ZoneOffset DEFAULT_ZONE_OFFSET = DEFAULT_ZONE_ID.getRules().getOffset(Instant.now());
}