public class TimeConverter extends Object
Constructor and Description |
---|
TimeConverter(TimeScale timeScale,
AbsoluteDate referenceDate)
Build a time system.
|
Modifier and Type | Method and Description |
---|---|
DateTimeComponents |
components(AbsoluteDate date)
Generate calendar components.
|
TimeScale |
getTimeScale()
Get the base time scale.
|
double |
offset(AbsoluteDate date)
Generate relative offset.
|
AbsoluteDate |
parse(String s)
Parse a relative or absolute date.
|
public TimeConverter(TimeScale timeScale, AbsoluteDate referenceDate)
timeScale
- base time scalereferenceDate
- reference date for relative dates (may be null if no relative dates are used)public AbsoluteDate parse(String s)
s
- string to parsepublic DateTimeComponents components(AbsoluteDate date)
date
- date to convertpublic double offset(AbsoluteDate date)
date
- date to convertpublic TimeScale getTimeScale()
Copyright © 2002-2023 CS GROUP. All rights reserved.