# Last modified date

**URL:** <https://www.ruby-forum.com/t/last-modified-date/108336>\
**Category:** Rails\
**Created:** [July 2, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/last-modified-date/108336 "2007-07-02T12:54:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahen1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ebca7d/32.png) [@mahen1981](https://www.ruby-forum.com/u/mahen1981)\
**Post date:** [July 2, 2007, 12:54pm UTC](https://www.ruby-forum.com/t/last-modified-date/108336/1 "2007-07-02T12:54:06Z")

</div>

Hi,

i want to know the last modified date of an external file from my  
application.  
Is it possible…?

---

<div class="post-metadata">

**Author:** ![mahen1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ebca7d/32.png) [@mahen1981](https://www.ruby-forum.com/u/mahen1981)\
**Post date:** [July 2, 2007, 1:15pm UTC](https://www.ruby-forum.com/t/last-modified-date/108336/2 "2007-07-02T13:15:29Z")

</div>

Mahendra W. wrote:

> Hi,
> 
> i want to know the last modified date of an external file from my  
> application.  
> Is it possible…?

[http://rubycentral.com/book/ref\_c\_file.html](http://rubycentral.com/book/ref_c_file.html)

has a listing of all the File class methods…that is what you are  
looking for.

[http://rubycentral.com/book/ref\_c\_file.html#File.mtime](http://rubycentral.com/book/ref_c_file.html#File.mtime)

is for the last modified time. you got atime, which is for access time,  
and other interesting methods. fun looking into…

enjoy the ride…

---

<div class="post-metadata">

**Author:** ![mahen1981](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ebca7d/32.png) [@mahen1981](https://www.ruby-forum.com/u/mahen1981)\
**Post date:** [July 2, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/last-modified-date/108336/3 "2007-07-02T13:29:19Z")

</div>

Shai R. wrote:

> Mahendra W. wrote:
> 
> > Hi,
> > 
> > i want to know the last modified date of an external file from my  
> > application.  
> > Is it possible…?
> 
> [http://rubycentral.com/book/ref\_c\_file.html](http://rubycentral.com/book/ref_c_file.html)
> 
> has a listing of all the File class methods…that is what you are  
> looking for.
> 
> [http://rubycentral.com/book/ref\_c\_file.html#File.mtime](http://rubycentral.com/book/ref_c_file.html#File.mtime)
> 
> is for the last modified time. you got atime, which is for access time,  
> and other interesting methods. fun looking into…
> 
> enjoy the ride…

Hi Shai,

Thanks. It’s really interesting…
