All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.time4j.base.UnixTime Maven / Gradle / Ivy

There is a newer version: 4.38
Show newest version
/*
 * -----------------------------------------------------------------------
 * Copyright © 2013-2014 Meno Hochschild, 
 * -----------------------------------------------------------------------
 * This file (UnixTime.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 UNIX timestamp.

* * @author Meno Hochschild * @see net.time4j.scale.TimeScale#POSIX */ /*[deutsch] *

Repräsentiert eine beliebige UNIX-Zeit.

* * @author Meno Hochschild * @see net.time4j.scale.TimeScale#POSIX */ public interface UnixTime { //~ Methoden ---------------------------------------------------------- /** *

Counts the seconds elapsed since UNIX epoch * [1970-01-01T00:00:00Z] in UTC timezone.

* * @return count of seconds since UNIX-epoch at [1970-01-01T00:00:00Z] * without leap seconds in the timezone UTC (Greenwich) */ /*[deutsch] *

Liefert die Zeitkoordinate in Sekunden relativ zur UNIX-Epoche * [1970-01-01T00:00:00Z] in der UTC-Zeitzone.

* * @return count of seconds since UNIX-epoch at [1970-01-01T00:00:00Z] * without leap seconds in the timezone UTC (Greenwich) */ long getPosixTime(); /** *

Yields the nanosecond fraction of current second.

* *

As time unit, the nanosecond is defined as one billionth part of * a second).

* * @return count of nanoseconds as fraction of last second in the * range {@code 0 - 999.999.999} */ /*[deutsch] *

Liefert den Nanosekundenbruchteil der letzten Sekunde.

* *

Als Zeiteinheit dient die Nanosekunde (1 Milliarde Nanosekunden * = 1 Sekunde).

* * @return count of nanoseconds as fraction of last second in the * range {@code 0 - 999.999.999} */ int getNanosecond(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy