Mega Code Archive
Categories
/
Ruby
/
File Directory
The time is returned as a Time object
t = File.mtime("text.txt") puts t.hour puts t.min puts t.sec