You always have access to the hostvars['localhost'].ansible_date_time
You also have this variable on every host if you gather facts, since
facts is gathered at different times that time will differ between host,
but the one on localhost is consistent through the run.
--
Kai Stian Olstad