public static void addModificationTimeToAttributes ( Map < String , byte [ ] > attributes , Clock clock ) { attributes . put ( FILE_MODIFICATION_TIMESTAMP_KEY , Longs . toByteArray ( clock . currentTimeMillis ( ) ) ) ; }
Add a key and value representing the current time as determined by the passed clock to the passed attributes dictionary .