2022-05-05 07:49:03 +00:00
|
|
|
package dev.plex.toml;
|
2022-05-04 12:18:07 +00:00
|
|
|
|
|
|
|
import java.util.TimeZone;
|
|
|
|
|
2022-05-10 05:08:45 +00:00
|
|
|
public class DatePolicy
|
|
|
|
{
|
2022-05-04 12:18:07 +00:00
|
|
|
|
2022-05-10 05:08:45 +00:00
|
|
|
private final TimeZone timeZone;
|
|
|
|
private final boolean showFractionalSeconds;
|
2022-05-04 12:18:07 +00:00
|
|
|
|
2022-05-10 05:08:45 +00:00
|
|
|
DatePolicy(TimeZone timeZone, boolean showFractionalSeconds)
|
|
|
|
{
|
|
|
|
this.timeZone = timeZone;
|
|
|
|
this.showFractionalSeconds = showFractionalSeconds;
|
|
|
|
}
|
2022-05-04 12:18:07 +00:00
|
|
|
|
2022-05-10 05:08:45 +00:00
|
|
|
TimeZone getTimeZone()
|
|
|
|
{
|
|
|
|
return timeZone;
|
|
|
|
}
|
|
|
|
|
|
|
|
boolean isShowFractionalSeconds()
|
|
|
|
{
|
|
|
|
return showFractionalSeconds;
|
|
|
|
}
|
2022-05-04 12:18:07 +00:00
|
|
|
}
|