TimeYearDayTime

class astropy.time.core.TimeYearDayTime(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False) [edit on github][source]

Bases: astropy.time.core.TimeString

Year, day-of-year and time as “YYYY:DOY:HH:MM:SS.sss...”. The day-of-year (DOY) goes from 001 to 365 (366 in leap years).

The allowed subformats are:

  • ‘date_hms’: date + hours, mins, secs (and optional fractional secs)
  • ‘date_hm’: date + hours, mins
  • ‘date’: date

Attributes Summary

subfmts tuple() -> empty tuple
name str(object) -> string

Attributes Documentation

subfmts = (('date_hms', '%Y:%j:%H:%M:%S', '{year:d}:{yday:03d}:{hour:02d}:{min:02d}:{sec:02d}'), ('date_hm', '%Y:%j:%H:%M', '{year:d}:{yday:03d}:{hour:02d}:{min:02d}'), ('date', '%Y:%j', '{year:d}:{yday:03d}'))
name = 'yday'

Page Contents