er.chronic.utils
Class Span
java.lang.Object
er.chronic.utils.Range
er.chronic.utils.Span
public class Span
- extends Range
A Span represents a range of time. Since this class extends
Range, you can use #begin and #end to get the beginning and
ending times of the span (they will be of class Time)
Span
public Span(Calendar begin,
int field,
float amount)
Span
public Span(Calendar begin,
Calendar end)
Span
public Span(long begin,
long end)
getBeginCalendar
public Calendar getBeginCalendar()
getEndCalendar
public Calendar getEndCalendar()
add
public Span add(long seconds)
- Add a number of seconds to this span, returning the
resulting Span
add
public Span add(float seconds)
- Add a number of seconds to this span, returning the
resulting Span
subtract
public Span subtract(long seconds)
- Subtract a number of seconds to this span, returning the
resulting Span
toString
public String toString()
- Overrides:
toString in class Range
Copyright © 2002 – 2011 Project Wonder.