time_ref_to_dict#

gammapy.utils.time.time_ref_to_dict(time=None, scale='tt')[source]#

Convert the epoch to the relevant FITS header keywords.

Parameters
timeTime, optional

The reference epoch for storing time in FITS. Default is None, so ‘DEFAULT_EPOCH’ is used.

scale: str, optional

Scale of the Time information. Default is “tt”.

Returns
metadict

FITS time standard header information.