when using the stat() on an IFS-file we have 3 timestamp-values that can be used :
- st_atime = last access time
- st_mtime = last modified time
- st_ctime = creation time
those times should return us the number of seconds since 01.01.1970 00.00.00 in GMT
the "atime" and "mtime "gives me correct values (1567543570)
this converts correctly to Tuesday 3 September 2019 20:46:10
but the "ctime" gives me a negative value (-2147483648) for the same file that has been created
this converts to Friday 13 December 1901 20:45:52
is there another logic to convert the ctime ? or is the ctime not reliable ?
now we changed the code to use the "mtime" as a temporary solution
but what if we really need to know the real creation date
when checking the IFS-attributes the creation date is correct (in dutch) :
Datum/tijd waarop gemaakt . . . . . . : 03/09/19 22:46:10
Datum/tijdstip laatst geopend . . . . : 05/09/19 11:59:09
Datum/tijdstip laatste wijziging . . . : 03/09/19 22:46:11
Datum/tijdstip laatste kenmerkwijziging: 03/09/19 22:46:11
thanks for any replies
- st_atime = last access time
- st_mtime = last modified time
- st_ctime = creation time
those times should return us the number of seconds since 01.01.1970 00.00.00 in GMT
the "atime" and "mtime "gives me correct values (1567543570)
this converts correctly to Tuesday 3 September 2019 20:46:10
but the "ctime" gives me a negative value (-2147483648) for the same file that has been created
this converts to Friday 13 December 1901 20:45:52
is there another logic to convert the ctime ? or is the ctime not reliable ?
now we changed the code to use the "mtime" as a temporary solution
but what if we really need to know the real creation date
when checking the IFS-attributes the creation date is correct (in dutch) :
Datum/tijd waarop gemaakt . . . . . . : 03/09/19 22:46:10
Datum/tijdstip laatst geopend . . . . : 05/09/19 11:59:09
Datum/tijdstip laatste wijziging . . . : 03/09/19 22:46:11
Datum/tijdstip laatste kenmerkwijziging: 03/09/19 22:46:11
thanks for any replies
Comment