public class DateTimePeriod extends Object implements Serializable
| Constructor and Description |
|---|
DateTimePeriod()
Constructor.
|
DateTimePeriod(RsDate from,
long duration)
Constructor.
|
DateTimePeriod(RsDate from,
RsDate until)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DateTimePeriod |
deepCopy()
Returns a deep copy of this period.
|
boolean |
equals(Object obj) |
long |
getDuration()
Returns the time in ms of this period or -1 if infinite.
|
RsDate |
getFrom()
Returns the from.
|
RsDate |
getUntil()
Returns the until.
|
int |
hashCode() |
boolean |
isIn(RsDate date)
Tells whether date is in this range.
|
void |
setFrom(RsDate from)
Sets the from.
|
void |
setUntil(RsDate until)
Sets the until.
|
public DateTimePeriod()
public DateTimePeriod(RsDate from, long duration)
public RsDate getFrom()
public void setFrom(RsDate from)
from - the from to setpublic RsDate getUntil()
public void setUntil(RsDate until)
until - the until to setpublic long getDuration()
public boolean isIn(RsDate date)
date - date to be checkedpublic DateTimePeriod deepCopy()
Copyright © 2014. All rights reserved.