I want to check if the file creation is older than a certain time (days). So far, this is how i got the file creation time.
BasicFileAttributes attr = Files.readAttributes(path, BasicFileAttributes.class);
long fileCreationTime = attr.creationTime().toMillis();
now I want to check if this file was created before X
number of days or not. How would i go about it. I am trying to look into LocalDateTime but kind a lost.
P.S: I don't want to use any external library.