Package uk.ac.starlink.ttools.plot2.geom
Class TimeJELFunction.TimeQuantity
java.lang.Object
uk.ac.starlink.ttools.plot2.geom.TimeJELFunction.TimeQuantity
- Enclosing class:
- TimeJELFunction
Defines a quantity representing time that can be used in expressions
supplied to this class.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
fromUnixSeconds
(double unixSec) Maps a time in unix seconds to the value represented by this quantity.Returns a short plain-text description of this quantity.getName()
Returns this quantity's name.
-
Method Details
-
getName
Returns this quantity's name.- Returns:
- variable name
-
getDescription
Returns a short plain-text description of this quantity.- Returns:
- description
-
fromUnixSeconds
public double fromUnixSeconds(double unixSec) Maps a time in unix seconds to the value represented by this quantity.- Parameters:
unixSec
- seconds since unix epoch- Returns:
- time value in this quantity
-