Skip to content

Instantly share code, notes, and snippets.

@javautodidacta
Created August 21, 2018 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javautodidacta/47b2a6f7de025e4959f075fd2a70918d to your computer and use it in GitHub Desktop.
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/
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