public class TimeUtil extends Object
| Constructor and Description | 
|---|
TimeUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
setLastModifiedOf(Path a,
                 Path b)
Set the lastModified time of file a to the one from file b 
 | 
static Instant | 
setLastModifiedWithOffset(Path path,
                         long offsetMillis)
Set the lastModified time of a given file by adding a given offset to the
 current lastModified time 
 | 
public static Instant setLastModifiedWithOffset(Path path, long offsetMillis)
path - path of a file to set last modifiedoffsetMillis - offset in milliseconds, if negative the new lastModified time
            is offset before the original lastModified time, otherwise
            after the original timeCopyright © 2020 Eclipse JGit Project. All rights reserved.