time_range

gdt.core.time.time_range(start: Time, stop: Union[Time, TimeDelta, Quantity, int, float], step: Union[TimeDelta, Quantity, int, float] = 1.0) Time[source]

Creates an array of Time values within the specified range. The values will be >= start times and < then the stop time (given or calculated).

Parameters:
  • start (astropy.time.Time) – Time value at the beginning of the range

  • stop (astropy.time.Time, astropy.units.Quantity, int, or float) – Either a time value signifying the end of the range, the duration of the time range as a Quantity with appropriate unit, or an int or float representing the number of seconds.

  • step (datetime.TimeDelta, astropy.units.Quantity, int, or float, optional) – Either a TimeDelta value, Quantity with appropriate unit, or a int or float representing the number of seconds.

Returns:

(astropy.time.Time)