naive_datetime_to_utc#

caput.astro.time.naive_datetime_to_utc(dt)[source]#

Add UTC timezone info to a naive datetime.

This only does anything if Skyfield is installed.

Parameters:
dtdatetime | array_like

datetime object without ‘tzinfo’

Returns:
dtdatetime | array_like

New datetime with tzinfo added.