/*
|
Zeitrechnung - a class library to determine calendar events
|
Copyright (c) 1984-2023 Ulrich Hilger, http://uhilger.de
|
|
This program is free software: you can redistribute it and/or modify
|
it under the terms of the GNU Affero General Public License as published by
|
the Free Software Foundation, either version 3 of the License, or
|
(at your option) any later version.
|
|
This program 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 Affero General Public License for more details.
|
|
You should have received a copy of the GNU Affero General Public License
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
*/
|
package de.uhilger.zeitrechnung;
|
|
/**
|
* Einfache Klasse fuer eine Zeit bestehend aus
|
* Stunde, Minute, Sekunde.
|
*
|
* @author Ulrich Hilger
|
*/
|
public class Zeit {
|
private int stunde;
|
private int minute;
|
private double sekunde;
|
|
public Zeit() {
|
super();
|
}
|
|
public Zeit(int stunde, int minute, double sekunde) {
|
this();
|
setStunde(stunde);
|
setMinute(minute);
|
setSekunde(sekunde);
|
}
|
|
public void setStunde(int s) {
|
this.stunde = s;
|
}
|
|
public int getStunde() {
|
return stunde;
|
}
|
|
public void setMinute(int m) {
|
this.minute = m;
|
}
|
|
public int getMinute() {
|
return minute;
|
}
|
|
public void setSekunde(double s) {
|
this.sekunde = s;
|
}
|
|
public double getSekunde() {
|
return sekunde;
|
}
|
}
|