From 77dcf92fe0fe08a7a12fe692b7c639fc634414e9 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Mon, 20 Apr 2020 15:01:12 +0200 Subject: [PATCH] nutze DateTimeFormatter --- src/geburtstag/Geburtstag.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geburtstag/Geburtstag.java b/src/geburtstag/Geburtstag.java index 4e9ccb5..c8f6484 100644 --- a/src/geburtstag/Geburtstag.java +++ b/src/geburtstag/Geburtstag.java @@ -46,7 +46,7 @@ public class Geburtstag { jetzt = LocalDateTime.now(); System.out.println("Jetzt ist:"); - System.out.println(jetzt.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM))); + System.out.println(jetzt.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM)) + " Uhr"); System.out.println(); int tageBisGeburtstag = 0;