In general, "yesterday" is just 24 hours before today, except for days where the daylight savings time changes. Time::Piece has documented methods for date/time arithmetic, and it even includes an example to add one day. But I'm quite certain that the example can be modified to subtract one day as well.
What problems did you encounter when using the documented arithmetic methods with your objects?
In reply to Re^3: print lines withing specific date range from maillog file
by Corion
in thread print lines withing specific date range from mailoog file
by theravadamonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |