fork(13) download
  1. import java.time.LocalDateTime;
  2. import java.time.ZoneId;
  3.  
  4. public class Main {
  5. public static void main(String[] args) {
  6. LocalDateTime now = LocalDateTime.now(ZoneId.of("Europe/Madrid"));
  7. System.out.println(now);
  8. }
  9. }
Success #stdin #stdout 0.12s 51816KB
stdin
Standard input is empty
stdout
2021-07-25T15:56:07.359762