Created
August 21, 2018 19:50
-
-
Save javautodidacta/47b2a6f7de025e4959f075fd2a70918d to your computer and use it in GitHub Desktop.
Fechas en Java: LocalDate, LocalTime y LocalDateTime (a) / https://javautodidacta.es/tiempo-en-java-localdate-localtime/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.javautodidacta; | |
import java.time.*; // Este paquete contiene LocalDate, LocalTime y LocalDateTime. | |
import java.time.format.*; // Este paquete contiene DateTimeFormatter. | |
public class Fechas { | |
public static void main(String[] args) { | |
LocalTime ahora = LocalTime.now(); | |
System.out.println(ahora); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment