Tagged articles
5 articles
Page 1 of 1
Selected Java Interview Questions
Selected Java Interview Questions
Feb 12, 2023 · Backend Development

Comprehensive Guide to Java 8 Date and Time API

This article provides a thorough walkthrough of Java 8's date‑time API, covering formatting patterns, obtaining current dates and times, extracting components, creating specific dates, comparing dates, handling periodic events, timezone offsets, timestamps, custom parsing, common pitfalls, and thread‑safety considerations, all illustrated with clear code examples.

DateTimeFormatterTimeAPIdatetime
0 likes · 24 min read
Comprehensive Guide to Java 8 Date and Time API
The Dominant Programmer
The Dominant Programmer
Nov 1, 2022 · Fundamentals

Common Java 8 Date and Time APIs: Getting Today’s Date and More

This article demonstrates how to use Java 8’s java.time package to obtain the current date and time, extract components, create specific dates, compare dates, handle periodic dates, compute future and past dates, retrieve timestamps, check leap years, calculate differences, and format/parse date strings, with concrete code examples.

Java 8chrono-unitdatetime
0 likes · 10 min read
Common Java 8 Date and Time APIs: Getting Today’s Date and More
Laravel Tech Community
Laravel Tech Community
Mar 19, 2021 · Backend Development

PHP localtime() Function – Retrieve Local Time as an Array

The PHP localtime() function returns the local date and time as an array, optionally associative, mirroring the C library function, and accepts an optional Unix timestamp parameter, with examples showing both numeric and associative array outputs.

Arrayassociative arraydatetime
0 likes · 3 min read
PHP localtime() Function – Retrieve Local Time as an Array
Programmer DD
Programmer DD
Aug 1, 2019 · Backend Development

Master Java 8 Date & Time API: From LocalDate to ZonedDateTime

This tutorial explains why the old java.util.Date and Calendar APIs were problematic, introduces the immutable, thread‑safe Java 8 Date‑Time classes such as LocalDate, LocalTime, LocalDateTime, ZonedDateTime, Period and Duration, shows practical code examples for creation, manipulation, formatting, conversion and compatibility, and lists alternative libraries like ThreeTen‑BP and Joda‑Time.

DurationPeriodZonedDateTime
0 likes · 13 min read
Master Java 8 Date & Time API: From LocalDate to ZonedDateTime