Add a yesterday function to core