File Times

BlitzMax Forums/BlitzMax Programming/File Times

Otus(Posted 2009) [#1]
FileTime returns an integer representing when the file was last modified, but what does the integer mean? Is it seconds, days or what?

Also, does anyone happen to have (cross platform) code for checking access and creation times or changing the time attributes of a file?


plash(Posted 2009) [#2]
http://www.blitzbasic.com/Community/posts.php?topic=71517#799590
http://www.blitzbasic.com/Community/posts.php?topic=54935
http://www.blitzbasic.com/Community/posts.php?topic=82789#934109


Otus(Posted 2009) [#3]
Thanks, those are helpful. The second one shows an internal error, though.

So, after Googling localtime it seems to be seconds from Jan 1st, 1970. Googling stat suggests that "ctime" is *not* creation time, though.

Haven't found a way to change the times yet.


Brucey(Posted 2009) [#4]
You probably want to use "utime()".