# Comapring a systems local time with filetime

**URL:** <https://www.ruby-forum.com/t/comapring-a-systems-local-time-with-filetime/117712>\
**Category:** Ruby\
**Created:** [October 19, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/comapring-a-systems-local-time-with-filetime/117712 "2007-10-19T16:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glacius](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/dec6dc/32.png) [@glacius](https://www.ruby-forum.com/u/glacius)\
**Post date:** [October 19, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/comapring-a-systems-local-time-with-filetime/117712/1 "2007-10-19T16:56:14Z")

</div>

basically I have to compare the current system time to some filetime’s

I have to only find files from the previous day (no further back than  
the previous day)

can someone help me with the syntax
