Up |
_getmodifdate
Gets the last date of a file access.
Prototype :
fun [P] [I I I I I I I I]
- P : a read reference file
Return : [I I I I I I I I] the date or nil if error
In the tuple :
- On MS Windows :
- the year;
- the month (1-12);
- the day;
- the day of the week (0 sunday-6 saturday);
- the hour (0-23), UTC;
- the minutes;
- the seconds;
- the milliseconds.
- On GNU/Linux :
- the year;
- the month (1-12);
- the day;
- the day of the week (1 sunday-7 saturday);
- the hour (0-23), UTC;
- the minutes;
- the seconds;
- always 0.
See also :
Example :
fun main ()=
_showconsole;
let _getmodifdate _checkpack "tests/kernel/files/lastmodified.pkg" -> [y m d _ h mn _ _] in
(
_fooS strcat "year = " itoa y;
_fooS strcat "month = " itoa m;
_fooS strcat "day = " itoa d;
_fooS strcat "hour = " itoa h;
_fooS strcat "minute = " itoa mn;
);
0;;