Package org.orekit.utils
Interface Formatter
- All Known Implementing Classes:
AccurateFormatter,TruncatedCcsdsFormatter
public interface Formatter
Formatter used to produce strings from data.
Interface for formatters to be passed to generators, dictating how to write doubles and datetime.
- Since:
- 13.0
- Author:
- John Ajamian
-
Field Details
-
STANDARDIZED_LOCALE
Standardized locale to use, to ensure files can be exchanged without internationalization issues. -
DATE_FORMAT
String format used for dates.- See Also:
-
-
Method Details
-
toString
Format a double number.- Parameters:
value- number to format- Returns:
- number formatted.
-
toString
Format a date. Does not check if date time is real or if it will meet formating requirements.- Parameters:
year- of date to be formattedmonth- of date to be formattedday- of month to be formattedhour- to be formattedminute- to be formattedseconds- and sub-seconds to be formatted- Returns:
- date formatted to match the following format [yyyy-MM-ddTHH:mm:ss.S#]
-