public class Interval extends Object
Constructor and Description |
---|
Interval() |
Modifier and Type | Method and Description |
---|---|
Calendar |
calendarChange(Calendar c,
boolean add)
Add interval value to the specified Calendar value
|
Date |
dateChange(Date in,
boolean add)
Add or subtract interval value to the specified date
|
Interval |
set(int value,
String item)
Set interval value
|
void |
setDays(int days)
Set interval items
|
void |
setMilliseconds(int milliseconds) |
Timestamp |
timestampChange(Timestamp in,
boolean add)
Add or subtract interval value to the specified timestamp
|
String |
toString()
Convert interval to string
|
public Date dateChange(Date in, boolean add)
public Timestamp timestampChange(Timestamp in, boolean add)
public Calendar calendarChange(Calendar c, boolean add)
public void setDays(int days)
public void setMilliseconds(int milliseconds)
Copyright © 2019 The Apache Software Foundation. All rights reserved.