hours_range_from

gdt.core.time.hours_range_from(hours: int, *, from_time=<Time object: scale='utc' format='datetime' value=2026-06-02 00:11:29.793610>)[source]

Returns a collection of hours starting from the given hours but not including the current hour of from time.

Parameters:
  • hours (int) – Number of hours from the given from_time

  • from_time (astropy.time.Time, optional) – The time from which the hours range is based (defaults to current time).

Returns:

(list of astropy.time.Time)