---------------------------------------------------------------------------
| 328 | } |
| 329 | //--------------------------------------------------------------------------- |
| 330 | double TFile::GetModificationTime(void) |
| 331 | { |
| 332 | FILETIME CT, LAT, LWT, LOCAL; |
| 333 | if( ! handle ) return 0.0; |
| 334 | Error = ! GetFileTime(handle, &CT, &LAT, &LWT); |
| 335 | if( Exceptions && Error ) throw 0; |
| 336 | if( Error ) return 0.0; |
| 337 | |
| 338 | Error = ! FileTimeToLocalFileTime(&LWT, &LOCAL); |
| 339 | if( Exceptions && Error ) throw 0; |
| 340 | if( Error ) return 0.0; |
| 341 | |
| 342 | return _TFileTimeToDateTime((ULONGLONG *)&LOCAL); |
| 343 | } |
| 344 | //--------------------------------------------------------------------------- |
| 345 | bool GetFileModificationTime(AnsiString name, ULONGLONG & out) |
| 346 | { |
nothing calls this directly
no test coverage detected