Hi, i want to know the last modified date of an external file from my application. Is it possible...? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mahendra Waykole 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 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 is for the last modified time. you got atime, which is for access time, and other interesting methods. fun looking into.. enjoy the ride.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shai Rosenfeld wrote:> Mahendra Waykole 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 > > 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 > > 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... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---