public class Span extends Range
Constructor and Description |
---|
Span(Calendar begin,
Calendar end) |
Span(Calendar begin,
int field,
float amount) |
Span(long begin,
long end) |
Modifier and Type | Method and Description |
---|---|
Span |
add(float seconds)
Add a number of seconds to this span, returning the
resulting Span
|
Span |
add(long seconds)
Add a number of seconds to this span, returning the
resulting Span
|
Calendar |
getBeginCalendar() |
Calendar |
getEndCalendar() |
Span |
subtract(long seconds)
Subtract a number of seconds to this span, returning the
resulting Span
|
String |
toString() |
public Span(Calendar begin, int field, float amount)
public Span(long begin, long end)
public Calendar getBeginCalendar()
public Calendar getEndCalendar()
public Span add(long seconds)
public Span add(float seconds)
public Span subtract(long seconds)
Copyright © 2002 – 2024 Project Wonder.