/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.time.*;
import java.time.temporal.*;
import java.time.format.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Instant instant = Instant.now() ;
int millis = instant.get( ChronoField.MILLI_OF_SECOND ) ; // Specify a `TemporalField` to be interrogated.
// Or, do the math yourself.
long millis2 = ( instant.getNano() / 1_000_000L ) ;
System.
out.
println( "instant.toString(): " + instant
) ; System.
out.
println( "millis: " + millis
) ; System.
out.
println( "millis2: " + millis2
) ;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgppbXBvcnQgamF2YS50aW1lLio7CmltcG9ydCBqYXZhLnRpbWUudGVtcG9yYWwuKjsKaW1wb3J0IGphdmEudGltZS5mb3JtYXQuKjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgpJbnN0YW50IGluc3RhbnQgPSBJbnN0YW50Lm5vdygpIDsKaW50IG1pbGxpcyA9IGluc3RhbnQuZ2V0KCBDaHJvbm9GaWVsZC5NSUxMSV9PRl9TRUNPTkQgKSA7ICAvLyBTcGVjaWZ5IGEgYFRlbXBvcmFsRmllbGRgIHRvIGJlIGludGVycm9nYXRlZC4KCi8vIE9yLCBkbyB0aGUgbWF0aCB5b3Vyc2VsZi4KbG9uZyBtaWxsaXMyID0gKCBpbnN0YW50LmdldE5hbm8oKSAvIDFfMDAwXzAwMEwgKSA7CgpTeXN0ZW0ub3V0LnByaW50bG4oICJpbnN0YW50LnRvU3RyaW5nKCk6ICIgKyBpbnN0YW50ICkgOwpTeXN0ZW0ub3V0LnByaW50bG4oICJtaWxsaXM6ICIgKyBtaWxsaXMgKSA7ClN5c3RlbS5vdXQucHJpbnRsbiggIm1pbGxpczI6ICIgKyBtaWxsaXMyICkgOwoKCgoKCX0KfQ==