Earnings are reported quarterly. The PE is the current (second-to-second) price divided by the last four quarters of reported earnings.
Right before earnings are reported the PE ratio is arguably dated, because it includes info reported 14 months ago, earned between 15 and 17 months ago, and does not include any earnings from the past 3 months.