public class DateUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
convertDateToMJD(Date date)
Convert a java.util.Date to a modified Julian date (MJD).
|
static double |
convertDateToMJD(Object temporalObject) |
static String |
convertDateToString(Object temporalObject) |
static Date |
convertStringToDate(String string)
Convert string to a date following FITS standards.
|
public static double convertDateToMJD(Object temporalObject)
public static double convertDateToMJD(Date date)
date - The date to convertpublic static Date convertStringToDate(String string) throws nom.tam.fits.FitsException
string - The string to convertnom.tam.fits.FitsException - If the string is not in the correct format.Copyright © 2023 LSST. All rights reserved.