Obtaining P2 as f(t)

I'm trying to take some discover results and find the orientational correlation for various bond vectors as a function of simulation time, rather than distance. Is this possible?
Thanks.