Tagged articles
date-time
11 articles · Page 1 of 1
The article explains the fundamental design flaws of java.util.Date—misleading name, mutability, non‑finality, timezone quirks, and legacy numbering—why a CTO may forbid its use, and provides a step‑by‑step guide to replace it with java.time classes such as Instant, LocalDateTime and ZonedDateTime.
BackendJavadate-time
0 likes · 12 min read

This article presents twenty practical Python datetime examples covering current time retrieval, formatting, date arithmetic, leap year checks, timers, scheduling, calendar queries, timestamp conversions, and weekday calculations, each accompanied by clear code snippets for immediate use.
DATETIMETime ManipulationTutorial
0 likes · 7 min read

This article provides a comprehensive collection of Python code snippets demonstrating how to obtain, format, convert, calculate differences, and perform various operations with dates and times, including timers, scheduling, and weekday handling.
DATETIMEPythonTime Manipulation
0 likes · 7 min read

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.
date-timejava.timejava.util.Date
0 likes · 10 min read

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.
date-timejava.timejava.util.Date
0 likes · 13 min read

The PHP getdate() function returns an associative array with detailed date and time components based on a provided Unix timestamp or the current local time, explaining its parameters, return structure, and offering a practical code example with sample output.
date-timegetdatephp-functions
0 likes · 2 min read

The article explains PHP's date_default_timezone_get() function, detailing how it determines the default timezone—first checking any timezone set with date_default_timezone_set(), then the php.ini setting, and finally the system default—provides the return type, example code, and sample output.
date-timephp-functionstimezone
0 likes · 2 min read


JavaEdgeOct 9, 2020 · Backend Development
This article explains why Java needed a new date‑time library, introduces the core concepts of the java.time API such as immutable value classes, domain‑driven design, factory methods, adjusters, periods, durations, time‑zone handling, and non‑ISO calendars, and provides concrete code examples for each feature.
date-timedatetime-apijava-8
0 likes · 12 min read

This article compares common database date‑time storage options—string fields, DATETIME, TIMESTAMP, and Unix timestamps—explaining their formats, range limits, timezone handling, performance implications, and provides Java code examples and SQL conversion tips to help developers select the most suitable approach for their systems.
databasesdate-timetimestamp
0 likes · 6 min read

A game server bug caused hundreds of reward emails to be sent on New Year's Day because a copied Java date‑difference function returned incorrect values for cross‑year dates, and the issue was resolved by replacing it with a reliable Java 8 time API implementation.
Java8bug fixcode-review
0 likes · 6 min read

This article presents a straightforward Java solution that converts UTC timestamps to Beijing time by applying an 8‑hour offset and provides utility methods to retrieve the current week number, month, day, and year using the Calendar class.
BackendUTCcalendar
0 likes · 3 min read
