random_dark_time

simsit.tools.random_dark_time(*, t_day, site, rng)

Draw a random time between the next sunset and next sunrise.

Parameters

t_dayastropy.time.Time

Time before the night of interest.

siteobject

Site object providing sun_set_time and sun_rise_time methods.

rngnumpy.random.Generator

Random number generator.

Returns

astropy.time.Time

Random time during the following night.