net.time4j.base.TimeSource Maven / Gradle / Ivy
/*
* -----------------------------------------------------------------------
* Copyright © 2013-2014 Meno Hochschild,
* -----------------------------------------------------------------------
* This file (TimeSource.java) is part of project Time4J.
*
* Time4J is free software: You can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* Time4J 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Time4J. If not, see .
* -----------------------------------------------------------------------
*/
package net.time4j.base;
/**
* Represents any kind of clock as source of current world time.
*
* @param generic type of current time
* @author Meno Hochschild
*/
/*[deutsch]
* Repräsentiert eine beliebige Uhr als Quelle der aktuellen
* Weltzeit.
*
* @param generic type of current time
* @author Meno Hochschild
*/
public interface TimeSource {
//~ Methoden ----------------------------------------------------------
/**
* Yields the current time.
*
* @return current time in seconds (as {@code UnixTime} object or derivate)
*/
/*[deutsch]
* Liefert die aktuelle Zeit.
*
* @return current time in seconds (as {@code UnixTime} object or derivate)
*/
T currentTime();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy