to_day_time

gdt.missions.cgro.time.to_day_time(time_obj)[source]

Convert an astropy time object to day-of-year and seconds-of-day BATSE format. The day-of-year is in the form yyyy.ddd, where the integer part is the year, and the decimal part is the day of year.

Parameters:

time_obj (astropy.Time) – The time object

Returns:

(float, float) – (day-of-year and seconds-of-day)