From the time of the official announcement here is the detailed countdown of events leading up to the Queen’s state funeral
The official announcement from Buckingham Palace will have been preceded by a “call cascade”, with the prime minister informed personally by the Queen’s private secretary, and the news passed through to the cabinet secretary and privy council office, which coordinates government work on behalf of the monarch. Only then will the “official notification” have been made to the public.