/*
|
|
Zeitrechnung - a class library to determine calendar events
|
Copyright (c) 1984-2022 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.kalender;
|
|
/**
|
* Klassen, die Methoden zur Zeitrechnung im Kontext der Programmbibliothek
|
* Zeitrechnung liefern, muessen diese Schnittstelle implementieren
|
*
|
* @author Ulrich Hilger
|
* @version 2, 1.10.2022
|
*/
|
public interface Zeitrechnung {
|
|
public long ganzzahlQuotient(double x, double y);
|
|
public long modulo(long x, long y);
|
|
public double modulo(double x, double y);
|
|
public long tagNach(long datum, int t);
|
|
public long tagAmOderNach(long datum, int t);
|
|
public long wochentagVonGenerisch(long datum);
|
|
public long nterTag(int n, int t, long datum);
|
|
public long tagVor(long datum, int t);
|
|
public long tagAmOderVor(long datum, int t);
|
|
public long letzterTag(int t, long datum);
|
|
}
|