Libraryless. Click here for Pure Java version (46L/1K).
static double fileAgeInDays(File f) { ret f == null ? -1 : msToDays(now()-fileModificationTime(f)); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028269 |
Snippet name: | fileAgeInDays |
Eternal ID of this version: | #1028269/3 |
Text MD5: | d9eb3d7ee516f30c05bbe669fca55a21 |
Transpilation MD5: | b39b9c24e0a65a01fb3c14256a8e5ed1 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-03 13:12:00 |
Source code size: | 105 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 216 / 316 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029787 - fileAgeInSeconds |