Webdings Tools (1.0.1) | ||
Prev Class | Next Class | Frames | No Frames | |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
de.webdings.tools.time.TimeSince
public class TimeSince
extends java.lang.Object
Method Summary | |||||||||
int[] |
| ||||||||
int[] |
| ||||||||
String |
| ||||||||
String |
| ||||||||
int |
| ||||||||
int |
| ||||||||
long |
| ||||||||
long |
| ||||||||
long |
| ||||||||
long |
| ||||||||
long |
| ||||||||
long |
| ||||||||
int |
| ||||||||
int |
| ||||||||
long |
| ||||||||
long |
| ||||||||
int |
| ||||||||
int |
| ||||||||
int |
| ||||||||
int |
|
public int[] getDaysMonthsYearsSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) as an array containing
Index Information 0 full years 1 full months 2 full days
- Parameters:
start
- past point
- Returns:
- Time-span in full years, full months, full days as an array containing
int
s.
public int[] getDaysMonthsYearsSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time as an array containing
Index Information 0 full years 1 full months 2 full days
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full years, full months, full days as an array containing
int
s.
public String getDaysMonthsYearsSinceAsString(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) as a String in the following form:42 years, 5 months, 23 days
- Parameters:
start
- past point
- Returns:
- Time-span in full years, full months and full days as a String
public String getDaysMonthsYearsSinceAsString(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time as a String in the following form:42 years, 5 months, 23 days
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full years, full months and full days as a String
public int getDaysSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full days
- Parameters:
start
- past point
- Returns:
- Time-span in full days
public int getDaysSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full days
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full days
public long getHoursSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full hours
- Parameters:
start
- past point
- Returns:
- Time-span in full hours
public long getHoursSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full hours
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full hours
public long getMilliSecondsSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full milliseconds
- Parameters:
start
- past point
- Returns:
- Time-span in full milliseconds
public long getMilliSecondsSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two points in time in full milliseconds.
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full milliseconds
public long getMinutesSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full minutes
- Parameters:
start
- past point
- Returns:
- Time-span in full minutes
public long getMinutesSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full minutes
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full minutes
public int getMonthsSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full months
- Parameters:
start
- past point
- Returns:
- Time-span in full months
public int getMonthsSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full months
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full months
public long getSecondsSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full seconds
- Parameters:
start
- past point
- Returns:
- Time-span in full seconds
public long getSecondsSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full seconds.
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full seconds
public int getWeeksSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full weeks
- Parameters:
start
- past point
- Returns:
- Time-span in full weeks
public int getWeeksSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full weeks
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full weeks
public int getYearsSince(GregorianCalendar start)
Returns the timespan between 1. a specified past point of time and
2. the moment this method is called (now) in full years
- Parameters:
start
- past point
- Returns:
- Time-span in full years
public int getYearsSince(GregorianCalendar start, GregorianCalendar stop)
Returns the timespan between two specified points in time in full years
- Parameters:
start
- Beginning of the measured time-span.stop
- End of the measured time-span.
- Returns:
- Time-span in full years
This file is part of Webdings Tools.
Webdings Tools is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Webdings Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Webdings Tools; if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Webdings Tools (1.0.1) |
© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.