Tag

java.time

0 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
Jun 9, 2024 · Backend Development

Why java.util.Date Is Deprecated and How to Migrate to the java.time API

The article explains the design flaws of java.util.Date, why it is discouraged in modern Java development, and provides a step‑by‑step guide with code examples for replacing it with java.time classes such as Instant, LocalDateTime, LocalDate, LocalTime, and ZonedDateTime.

JavaMigrationbackend
0 likes · 10 min read
Why java.util.Date Is Deprecated and How to Migrate to the java.time API
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 21, 2024 · Backend Development

Why Avoid java.util.Date and How to Migrate to java.time APIs

The article explains the design flaws of java.util.Date, why it should be replaced, and provides a step‑by‑step guide with code examples for migrating to the modern java.time classes such as Instant, LocalDateTime, LocalDate, and ZonedDateTime in Java backend projects.

APIDateJava
0 likes · 10 min read
Why Avoid java.util.Date and How to Migrate to java.time APIs
Architecture Digest
Architecture Digest
Mar 14, 2024 · Backend Development

Why java.util.Date Should Be Replaced and How to Migrate to java.time

The article explains the many design flaws of java.util.Date, why modern Java projects must abandon it, and provides a step‑by‑step guide with code examples for migrating to the immutable java.time API such as Instant, LocalDateTime and ZonedDateTime.

JavaMigrationbackend
0 likes · 13 min read
Why java.util.Date Should Be Replaced and How to Migrate to java.time
Code Ape Tech Column
Code Ape Tech Column
Mar 12, 2024 · Backend Development

Problems with java.util.Date and Migration to java.time API

The article explains the design flaws of java.util.Date, such as mutability, misleading naming, and timezone issues, and provides a step‑by‑step guide to replace it and related APIs with java.time classes like Instant, LocalDateTime, and ZonedDateTime, including code examples.

APIDateJava
0 likes · 13 min read
Problems with java.util.Date and Migration to java.time API
macrozheng
macrozheng
May 9, 2022 · Backend Development

Master Java Date & Time: From JDK7 Date to JDK8 LocalDate/LocalDateTime

This article compares Java's legacy date handling in JDK7 with the modern java.time API introduced in JDK8, demonstrating how to create, format, and convert dates using LocalDate, LocalDateTime, DateTimeFormatter, and related methods, and provides a comprehensive table of useful LocalDate APIs.

DateTimeJDK8Java
0 likes · 9 min read
Master Java Date & Time: From JDK7 Date to JDK8 LocalDate/LocalDateTime
Architect's Tech Stack
Architect's Tech Stack
Oct 10, 2021 · Fundamentals

Java 8 Date and Time API Tutorial with Code Examples

This article introduces Java 8's new date‑time API, explains why the old java.util.Date and SimpleDateFormat were problematic, and provides eleven practical code examples that demonstrate how to obtain the current date, extract year/month/day, create specific dates, compare dates, work with time zones, and format or parse date strings.

DateTimeJavaJava 8
0 likes · 11 min read
Java 8 Date and Time API Tutorial with Code Examples
Architect's Tech Stack
Architect's Tech Stack
Oct 3, 2019 · Fundamentals

Detailed Overview of JDK 13 New Features

This article provides a comprehensive English summary of JDK 13's new features—including switch expression enhancements, text‑block syntax, dynamic CDS archives, ZGC memory reclamation, revamped socket APIs, new FileSystems methods, updated NIO ByteBuffer operations, the Reiwa era in java.time, Unicode 12.1 support, GC improvements, security updates, and removed legacy functionalities—accompanied by original Java code examples.

JavaNIOSwitch Expression
0 likes · 11 min read
Detailed Overview of JDK 13 New Features
Java Captain
Java Captain
Dec 16, 2018 · Fundamentals

Using Java 8 java.time API: LocalDate, LocalTime, and LocalDateTime Examples

This article explains the shortcomings of java.util.Date, introduces the immutable java.time classes LocalDate, LocalTime, and LocalDateTime introduced in Java 8, and provides detailed code examples for obtaining, comparing, adding/subtracting, and converting dates and times.

JavaJava8LocalDate
0 likes · 8 min read
Using Java 8 java.time API: LocalDate, LocalTime, and LocalDateTime Examples