public class DateInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
private Long |
beginTimestamp
type为DATE_TYPE_FIX_TIME_RANGE时专用,
表示起用时间。从1970年1月1日00:00:00至起用时间的秒数 ( 东八区时间,UTC+8,单位为秒 )
|
private Long |
endTimestamp
type为DATE_TYPE_FIX_TERM_RANGE时专用,
表示结束时间 ( 东八区时间,UTC+8,单位为秒 )
|
private Long |
fixedBeginTerm
type为DATE_TYPE_FIX_TERM时专用,
表示自领取后多少天开始生效。(单位为天)
|
private Long |
fixedTerm
type为DATE_TYPE_FIX_TERM时专用,
表示自领取后多少天内有效,领取后当天有效填写0(单位为天)
|
private DateInfoType |
type
使用时间的类型
|
| Constructor and Description |
|---|
DateInfo(DateInfoType type,
Long beginTimestamp,
Long endTimestamp,
Long fixedTerm,
Long fixedBeginTerm)
Instantiates a new Date info.
|
| Modifier and Type | Method and Description |
|---|---|
static DateInfo |
permanent()
永久有效类型
|
static DateInfo |
timeRange(Instant beginTimestamp,
Instant endTimestamp)
Time range date info.
|
private final DateInfoType type
private final Long beginTimestamp
private final Long endTimestamp
private final Long fixedTerm
private final Long fixedBeginTerm
public DateInfo(DateInfoType type, Long beginTimestamp, Long endTimestamp, Long fixedTerm, Long fixedBeginTerm)
type - the typebeginTimestamp - the begin timestampendTimestamp - the end timestampfixedTerm - the fixed termfixedBeginTerm - the fixed begin termpublic static DateInfo permanent()
Copyright © 2023. All rights reserved.