Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

age of tile

Intel_C_Intel
Employee
363 Views
I can use API routines to obtain current time and file creation time. I can obtain time in SYSTEMTIME or FILETIME format. I prefer FILETIME which is 64-bit.

How do I subtract two FILETIME structures to get file age ?
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
363 Views
If you have CVF6.5 or later, you can EQUIVALENCE a FILETIME structure with (or TRANSFER it into) an INTEGER(8). Then you can do normal integer arithmetic on it.

Jugoslav
0 Kudos
Reply