Function formatMjd( mjd, format )
- Description:
-
Converts a Modified Julian Date value to a date using a customisable
date format.
The format is as defined by the
java.text.SimpleDateFormat
class.
The default output corresponds to the string
"yyyy-MM-dd'T'HH:mm:ss
"
- Parameters:
-
- mjd (floating point)
- modified Julian date
- format (String)
- formatting patttern
- Return Value (String):
- custom formatted time corresponding to
mjd
- Examples:
formatMjd(50000.3, "EEE dd, MMM, yy")
= "Tue 10 Oct, 95"
formatMjd(50000.1234, "'time 'H:mm:ss.SSS")
= "time 2:57:41.760"
- Signature:
- java.lang.String formatMjd(double, java.lang.String)