Tagged articles
104 articles
Page 1 of 2
php Courses
php Courses
Nov 21, 2025 · Backend Development

Why You Should Prefer DateTimeImmutable Over DateTime in PHP

DateTimeImmutable, introduced in PHP 5.5, offers immutable date objects that prevent side‑effects and improve code safety, while DateTime remains mutable; the article compares their behaviors, shows practical examples, outlines risks of mutability, and provides guidance on when to use each class.

DateTimeImmutablebest practicesdatetime
0 likes · 6 min read
Why You Should Prefer DateTimeImmutable Over DateTime in PHP
Senior Brother's Insights
Senior Brother's Insights
Oct 8, 2025 · Databases

Choosing the Right MySQL Date and Time Type: A Complete Guide

This article explains the five MySQL temporal column types—DATE, DATETIME, TIMESTAMP, YEAR, and TIME—detailing their storage size, valid ranges, typical use‑cases, timezone behavior, and the 2038 problem, helping developers pick the most suitable type for any scenario.

SQLTemporal Typesdatetime
0 likes · 9 min read
Choosing the Right MySQL Date and Time Type: A Complete Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 9, 2025 · Backend Development

Why Adding 2 Days Sometimes Results in a 3-Day Unblock? Java Date Precision Explained

A Java backend bug caused blacklist unblocking times to be stored one second later than expected due to mismatched Date and TIMESTAMP precision, daylight‑saving and timezone conversions, and millisecond rounding, which was diagnosed through code review, AI analysis, and batch testing, then fixed by normalising nanoseconds or adjusting database column precision.

JavaPostgreSQLTimezone
0 likes · 11 min read
Why Adding 2 Days Sometimes Results in a 3-Day Unblock? Java Date Precision Explained
php Courses
php Courses
Aug 14, 2025 · Backend Development

Master PHP Time Functions: Get, Format, Calculate, and Set Timezones

This tutorial explains how to use PHP's time(), date(), strtotime(), and date_default_timezone_set() functions to retrieve the current timestamp, format dates, perform date arithmetic, and configure timezones, providing practical code examples for each operation.

Date FormattingPHPTimezone
0 likes · 4 min read
Master PHP Time Functions: Get, Format, Calculate, and Set Timezones
Lin is Dream
Lin is Dream
May 26, 2025 · Backend Development

Master Java Date & Time APIs: Quick Reference for Daily, Weekly, Monthly and Quarterly Operations

This article consolidates essential Java date and time utilities—including start/end calculations for days, weeks, months, quarters and years, time arithmetic, formatting, parsing, and conversions between LocalDateTime, Date, and Instant—providing a handy reference for developers working with the Java Time API.

DurationJavaLocalDateTime
0 likes · 15 min read
Master Java Date & Time APIs: Quick Reference for Daily, Weekly, Monthly and Quarterly Operations
Test Development Learning Exchange
Test Development Learning Exchange
May 6, 2025 · Fundamentals

Python Date and Time Manipulation Examples

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.

PythonTime ManipulationTutorial
0 likes · 7 min read
Python Date and Time Manipulation Examples
Java Tech Enthusiast
Java Tech Enthusiast
Apr 23, 2025 · Databases

Choosing the Right Date/Time Storage in MySQL and PostgreSQL

When storing dates in MySQL or PostgreSQL, avoid VARCHAR fields and select between DATETIME (no time‑zone, larger range) and TIMESTAMP (UTC conversion, smaller range) based on whether automatic time‑zone handling and the 2038 limit suit your application, with Unix timestamps as a high‑performance alternative.

Timezonedatabasedatetime
0 likes · 11 min read
Choosing the Right Date/Time Storage in MySQL and PostgreSQL
IT Services Circle
IT Services Circle
Apr 22, 2025 · Backend Development

Effective Date and Time Handling in Java: Pitfalls, Thread Safety, and Advanced Solutions

This article explores common pitfalls in Java date handling such as thread‑unsafe SimpleDateFormat and daylight‑saving issues, and presents robust solutions including ThreadLocal wrappers, Java 8 Date‑Time API, timezone‑aware calculations, caching strategies, and global interceptor designs to ensure safe, performant, and maintainable time processing.

JavaThreadSafetyTimezone
0 likes · 10 min read
Effective Date and Time Handling in Java: Pitfalls, Thread Safety, and Advanced Solutions
Python Programming Learning Circle
Python Programming Learning Circle
Apr 16, 2025 · Fundamentals

50 Practical Python Code Snippets for File Operations, Data Processing, Web Requests, Date/Time Handling, and Utilities

This article presents fifty ready‑to‑use Python examples covering file and directory manipulation, data processing, network requests, date‑time utilities, and assorted handy tools, each accompanied by clear explanations and complete code snippets to help developers quickly apply common programming tasks.

data-processingdatetimefile-handling
0 likes · 31 min read
50 Practical Python Code Snippets for File Operations, Data Processing, Web Requests, Date/Time Handling, and Utilities
Test Development Learning Exchange
Test Development Learning Exchange
Feb 14, 2025 · Fundamentals

Python Date and Time Modules Overview

This article provides a comprehensive overview of Python's core date and time handling modules, including datetime, time, calendar, dateutil, and zoneinfo, with practical examples and installation instructions for advanced functionality.

Pythondate handlingdatetime
0 likes · 3 min read
Python Date and Time Modules Overview
php Courses
php Courses
Dec 6, 2024 · Backend Development

How to Retrieve a File’s Last Modification Time in PHP

This article explains how to retrieve a file’s last modification time in PHP using functions like filemtime(), stat(), and the DateTime class, and provides a practical example for detecting changes and notifying users.

Backenddatetimefilemtime
0 likes · 3 min read
How to Retrieve a File’s Last Modification Time in PHP
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 21, 2024 · Databases

Common MySQL Data Types and Selection Guidelines

This article explains MySQL's various numeric, date/time, and string data types, discusses their characteristics such as signed/unsigned integers, floating‑point precision, fixed‑point accuracy, and provides practical best‑practice recommendations for choosing optimal types in database design.

Data TypesDatabase designSQL
0 likes · 6 min read
Common MySQL Data Types and Selection Guidelines
php Courses
php Courses
Nov 5, 2024 · Backend Development

Understanding PHP time() Function: Purpose, Usage, and Code Examples

This article explains PHP's time() function, describing how it returns the current Unix timestamp, demonstrates basic usage, and provides multiple code examples for retrieving timestamps, comparing dates, and formatting the current date and time.

datetimephp-tutorialtime function
0 likes · 5 min read
Understanding PHP time() Function: Purpose, Usage, and Code Examples
php Courses
php Courses
Sep 9, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's versatile date() function, detailing its syntax, required format parameter, optional timestamp argument, and demonstrates numerous usage examples—including retrieving current date, time, individual components, and formatting specific timestamps—highlighting its importance for backend web development.

BackendDate FormattingPHP
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
php Courses
php Courses
Sep 5, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's date() function, its syntax, required and optional parameters, and provides multiple code examples demonstrating how to retrieve and format current dates, times, and timestamps for various use cases in backend development.

BackendPHPPHP8
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
php Courses
php Courses
Aug 21, 2024 · Backend Development

Understanding PHP DateTime: Mutability, Immutability, and Best Practices

This article examines PHP's DateTime class, analyzing its mutable design drawbacks, the benefits of the immutable DateTimeImmutable alternative, and offers practical guidelines and best‑practice strategies for developers to write safer, more maintainable date‑handling code.

BackendPHPbest-practices
0 likes · 8 min read
Understanding PHP DateTime: Mutability, Immutability, and Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 20, 2024 · Backend Development

Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts

Learn how to elegantly process Java 8 date parameters, register custom converters, conditionally enable controllers, apply unified API prefixes, perform service‑layer validation, and control asynchronous request timeouts in Spring Boot 3.2.5 using annotations, configuration files, and programmatic WebMvcConfigurer techniques.

AsyncControllerSpring Boot
0 likes · 7 min read
Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts
Test Development Learning Exchange
Test Development Learning Exchange
Aug 8, 2024 · Fundamentals

Python datetime tutorial: current time, timestamps, date arithmetic, formatting, parsing, range generation, and calendar display

This tutorial demonstrates how to use Python's datetime and calendar modules to obtain the current date and time, convert dates to timestamps, perform date arithmetic, format and parse dates, generate date ranges, compare dates, and display monthly calendars, with clear code examples for each operation.

PythonTime Manipulationcoding
0 likes · 6 min read
Python datetime tutorial: current time, timestamps, date arithmetic, formatting, parsing, range generation, and calendar display
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Overview of Common Python Standard Library Modules

This article provides practical code examples for using key Python standard library modules—including os, sys, json, datetime, re, math, collections, urllib, random, and logging—to perform common tasks such as file operations, system info, data parsing, date handling, pattern matching, calculations, data structures, web requests, random generation, and logging.

JSONPythonStandard Library
0 likes · 4 min read
Overview of Common Python Standard Library Modules
Test Development Learning Exchange
Test Development Learning Exchange
Apr 1, 2024 · Fundamentals

Useful Python Code Snippets for Time, Data Formatting, JSON Fixing, URL Query Parsing, File Comments, INI Config, and Path Management

This article presents a collection of practical Python code snippets covering timestamp retrieval, date formatting, JSON correction, URL query parsing, file comment extraction, INI configuration reading, and project‑relative path resolution to help developers handle common tasks efficiently.

CONFIGJSONdatetime
0 likes · 7 min read
Useful Python Code Snippets for Time, Data Formatting, JSON Fixing, URL Query Parsing, File Comments, INI Config, and Path Management
IT Services Circle
IT Services Circle
Mar 9, 2024 · Backend Development

Common Java Date Handling Pitfalls: Leap Year, Formatting, Timezone, and Thread Safety

This article explains several Java date‑time pitfalls—including leap‑year calculations, differences between YYYY/yyyy and HH/hh patterns, SimpleDateFormat initialization, Calendar hour fields, integer overflow in date arithmetic, thread‑unsafe usage of SimpleDateFormat, and daylight‑saving‑time handling—providing code examples and best‑practice recommendations.

BackendDateFormattingJava
0 likes · 10 min read
Common Java Date Handling Pitfalls: Leap Year, Formatting, Timezone, and Thread Safety
Python Programming Learning Circle
Python Programming Learning Circle
Jan 13, 2024 · Fundamentals

Comprehensive Guide to Python Time Handling Modules (time, datetime, pytz, dateutil, Arrow, ISO 8601)

This article provides a thorough overview of Python's time‑related libraries—including the built‑in time and datetime modules, third‑party pytz, dateutil, and Arrow—explaining core concepts such as timestamps, time zones, daylight‑saving time, and ISO 8601 parsing with clear code examples and usage patterns.

ArrowPythondatetime
0 likes · 27 min read
Comprehensive Guide to Python Time Handling Modules (time, datetime, pytz, dateutil, Arrow, ISO 8601)
php Courses
php Courses
Oct 25, 2023 · Backend Development

Understanding and Using PHP date() Function for Date and Time Formatting

This article explains the PHP date() function, covering its syntax, required and optional parameters, common format characters for year, month, day, hour, minute and second, additional textual options, usage for timestamp conversion, and timezone considerations, helping developers handle date and time tasks efficiently.

PHPdate()datetime
0 likes · 5 min read
Understanding and Using PHP date() Function for Date and Time Formatting
Java Architecture Diary
Java Architecture Diary
Sep 18, 2023 · Fundamentals

What’s New in Java 21? Explore Updated String, Collections, and More

This article walks through the latest Java 21 additions—including enhanced String search methods, new Emoji utilities in Character, repeat() for StringBuilder and StringBuffer, updated Charset factories, named regex groups, SequencedCollection interfaces, localized DateTimeFormatter patterns, extended Math and BigInteger operations, and improved Thread and Future APIs—providing code examples and usage guidance.

APICollectionsString
0 likes · 13 min read
What’s New in Java 21? Explore Updated String, Collections, and More
Test Development Learning Exchange
Test Development Learning Exchange
Jul 12, 2023 · Fundamentals

Python Code Snippets for Data Conversion, Date/Time Handling, File I/O, QR/Barcode Generation, List & JSON Comparison, and File Management

This article provides a collection of Python examples that demonstrate how to convert lists and strings to JSON, format dates and timestamps, read files, generate QR codes and barcodes, compare lists and JSON data, retrieve class methods via reflection, and automatically delete large files based on size and time.

Data ConversionPythonQR code
0 likes · 14 min read
Python Code Snippets for Data Conversion, Date/Time Handling, File I/O, QR/Barcode Generation, List & JSON Comparison, and File Management
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 11, 2023 · Databases

Investigation of Implicit Type Conversion Issues in OceanBase Update and Select Statements

This article analyzes a puzzling OceanBase data‑type implicit conversion problem where UPDATE statements intermittently fail with SQL syntax errors while SELECT statements return unexpected results, explains the underlying conversion mechanisms, shows diagnostic queries and log excerpts, and provides practical recommendations to avoid such errors.

DatabaseDebuggingImplicitConversionOceanBase
0 likes · 17 min read
Investigation of Implicit Type Conversion Issues in OceanBase Update and Select Statements
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.

DateTimeFormatterJavaTimeAPI
0 likes · 24 min read
Comprehensive Guide to Java 8 Date and Time API
Laravel Tech Community
Laravel Tech Community
Jan 12, 2023 · Backend Development

Using Carbon PHP Extension for Simplified Date and Time Manipulation

This article demonstrates how to install and use the Carbon PHP extension to simplify date and time operations, covering retrieval of current, today, yesterday, tomorrow, parsing specific strings, timezone handling, adding and subtracting years, months, weeks, days, hours, minutes, seconds, and formatting dates in various styles.

CarbonPHPdate manipulation
0 likes · 6 min read
Using Carbon PHP Extension for Simplified Date and Time Manipulation
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.

JavaJava 8chrono-unit
0 likes · 10 min read
Common Java 8 Date and Time APIs: Getting Today’s Date and More
Selected Java Interview Questions
Selected Java Interview Questions
Sep 7, 2022 · Backend Development

Java Date and Time Formatting: Methods, Thread Safety, and Best Practices

This article compares three common Java date‑time formatting approaches—SimpleDateFormat, Java 8’s DateTimeFormatter, and Apache Commons Lang3’s DateFormatUtils—examines thread‑safety issues, provides code examples, and offers conversion utilities between Date, LocalDate, and LocalDateTime for robust backend development.

Apache CommonsDateTimeFormatterSimpleDateFormat
0 likes · 9 min read
Java Date and Time Formatting: Methods, Thread Safety, and Best Practices
Top Architect
Top Architect
Aug 11, 2022 · Backend Development

18 Practical Java 8 Date/Time Handling Examples

This article presents 18 practical techniques for using Java 8’s new date‑time API, demonstrating how to obtain, manipulate, compare, format, and calculate dates and times with immutable, thread‑safe classes such as LocalDate, LocalTime, ZonedDateTime, and Instant, while providing full code examples for each use case.

JavaTimeAPIdatetime
0 likes · 11 min read
18 Practical Java 8 Date/Time Handling Examples
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 14, 2022 · Fundamentals

How to Quickly Get Month Start and End Dates with Pandas

This tutorial demonstrates multiple pandas techniques—including datetime mapping, MonthBegin/MonthEnd offsets, floor operations, period conversion, and asfreq—to accurately retrieve the first and last day of a month for any given date, while highlighting common pitfalls and performance considerations.

Pythondata analysisdatetime
0 likes · 7 min read
How to Quickly Get Month Start and End Dates with Pandas
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.

Backend DevelopmentJDK8Java
0 likes · 9 min read
Master Java Date & Time: From JDK7 Date to JDK8 LocalDate/LocalDateTime
IT Xianyu
IT Xianyu
Apr 18, 2022 · Backend Development

Global Date and Time Conversion in Spring Boot 2.x: Custom Converters, Jackson Configuration, and Parameter Binding

This article explains how to globally handle LocalDate, LocalDateTime, and LocalTime parameters in Spring Boot 2.x by creating custom Converter beans, configuring Jackson's ObjectMapper, using @DateTimeFormat, ControllerAdvice, and understanding the underlying parameter resolution mechanisms to avoid common pitfalls such as lambda‑based converter registration failures.

BackendConverterJackson
0 likes · 16 min read
Global Date and Time Conversion in Spring Boot 2.x: Custom Converters, Jackson Configuration, and Parameter Binding
IT Services Circle
IT Services Circle
Mar 24, 2022 · Fundamentals

Comprehensive Guide to Python Time Handling with calendar, time, and datetime Modules

This article provides a detailed tutorial on Python's time‑related classes and functions, covering Unix timestamps, conversion tools, and the practical use of the calendar, time, and datetime modules with examples of formatting, timezone conversion, and common time‑conversion tricks for everyday programming tasks.

CalendarPythondate-time conversion
0 likes · 18 min read
Comprehensive Guide to Python Time Handling with calendar, time, and datetime Modules
IT Services Circle
IT Services Circle
Mar 16, 2022 · Fundamentals

Six Ways to Get the Weekday of a Specific Date in Python

This tutorial explains six Python techniques—including datetime.weekday(), datetime.isoweekday(), strftime(), calendar, pendulum, and pandas—to retrieve the weekday of any given date such as 2022‑02‑22, with code examples and usage tips for data analysis.

Calendardatetimepandas
0 likes · 6 min read
Six Ways to Get the Weekday of a Specific Date in Python
Python Crawling & Data Mining
Python Crawling & Data Mining
Oct 15, 2021 · Fundamentals

Three Simple Python Tricks to Convert Chinese Dates to YYYY/MM/DD

This article walks through a fan's question on converting a Chinese date string like '2021年9月28日' into the standard '2021/9/28' format, presenting three practical Python solutions—including direct replacement, split‑and‑join, and datetime parsing—so you can pick the most suitable method for bulk data processing.

Date ConversionPythonString Manipulation
0 likes · 4 min read
Three Simple Python Tricks to Convert Chinese Dates to YYYY/MM/DD
MaGe Linux Operations
MaGe Linux Operations
Oct 11, 2021 · Fundamentals

Master Python’s Time and Date Modules: From time to datetime, pytz, and Arrow

This comprehensive guide walks you through Python’s time‑handling ecosystem, covering the low‑level time module, the richer datetime module, timezone utilities like pytz, advanced parsing with dateutil, and the user‑friendly Arrow library, complete with explanations, code snippets, and practical examples for formatting, conversion, and manipulation.

ArrowPythonTimezone
0 likes · 39 min read
Master Python’s Time and Date Modules: From time to datetime, pytz, and Arrow
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.

Java 8code-examplesdatetime
0 likes · 11 min read
Java 8 Date and Time API Tutorial with Code Examples
Python Programming Learning Circle
Python Programming Learning Circle
Sep 10, 2021 · Fundamentals

Comprehensive Guide to Python Time Handling: time, datetime, pytz, dateutil, and Arrow

This article provides a detailed overview of Python's time‑handling ecosystem, covering fundamental concepts of seconds, GMT, UTC and leap seconds, the low‑level time module, high‑level datetime classes, timezone manipulation with pytz, flexible parsing with dateutil, and the user‑friendly Arrow library, complete with code examples and usage notes.

ArrowTimezonedatetime
0 likes · 24 min read
Comprehensive Guide to Python Time Handling: time, datetime, pytz, dateutil, and Arrow
Python Crawling & Data Mining
Python Crawling & Data Mining
Jul 30, 2021 · Fundamentals

Master Python Functions: From Basics to Time & Random Utilities

This article introduces Python function fundamentals, shows how to define and call functions, demonstrates common time‑related functions from the time and datetime modules, and provides examples of calendar and random number utilities, all illustrated with clear code snippets and output screenshots.

Tutorialdatetimefunctions
0 likes · 6 min read
Master Python Functions: From Basics to Time & Random Utilities
Java Architecture Diary
Java Architecture Diary
Jun 23, 2021 · Fundamentals

Why Java Needed a New Date‑Time API and How JSR‑310 Solves It

This article explains the shortcomings of the legacy java.util.Date and Calendar classes, outlines the motivations behind creating a new date‑time API, and introduces Java 8's JSR‑310 solution with its comprehensive class hierarchy, range handling, chronology support, and fluent method design.

APIJSR-310Java
0 likes · 10 min read
Why Java Needed a New Date‑Time API and How JSR‑310 Solves It
Java Tech Enthusiast
Java Tech Enthusiast
Apr 12, 2021 · Backend Development

Java 8 Lambda Expressions, Stream API, and Optional Tutorial

Java 8 adds powerful functional constructs—lambda expressions, method and constructor references, the Stream API, and Optional—plus a modern, thread‑safe date‑time library, and this tutorial explains their syntax, core interfaces, common operations, and practical backend examples to improve code readability and conciseness.

JavaLambdaStream API
0 likes · 31 min read
Java 8 Lambda Expressions, Stream API, and Optional Tutorial
Laravel Tech Community
Laravel Tech Community
Mar 22, 2021 · Backend Development

PHP mktime() Function – Getting a Unix Timestamp

The article explains PHP's mktime() function, detailing its syntax, parameter list, default behavior, return value, and provides a complete example showing how to generate a Unix timestamp for a specific date and time.

datetimemktimephp-functions
0 likes · 3 min read
PHP mktime() Function – Getting a Unix Timestamp
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
Java Backend Technology
Java Backend Technology
Feb 24, 2021 · Fundamentals

Mastering Java 8 Date & Time API: Practical Examples and Code Snippets

This article introduces Java 8's modern date‑time API, explains why the old java.util.Date and SimpleDateFormat are problematic, and provides a series of concise, runnable examples that demonstrate how to obtain the current date, extract year/month/day, work with specific dates, compare dates, handle time zones, calculate periods, format and parse strings, and more.

APIJavadatetime
0 likes · 15 min read
Mastering Java 8 Date & Time API: Practical Examples and Code Snippets
Python Programming Learning Circle
Python Programming Learning Circle
Dec 15, 2020 · Backend Development

Understanding Timezone Handling in Django

This article explains the differences between naive and aware datetime objects, how Django sets the TZ environment variable, the behavior of datetime.now, timezone.now, and related Python functions, and provides practical guidance for storing and converting timestamps in Django applications.

BackendDjangoPython
0 likes · 14 min read
Understanding Timezone Handling in Django
JavaEdge
JavaEdge
Nov 22, 2020 · Fundamentals

Why Java’s Legacy Date API Fails and How Java 8 Solves Time‑Zone Chaos

The article examines the shortcomings of Java’s pre‑Java 8 date‑time classes—Date, Calendar, and SimpleDateFormat—highlighting their thread‑unsafe, confusing APIs and time‑zone pitfalls, then demonstrates how Java 8’s new date‑time API (LocalDateTime, ZonedDateTime, ZoneId, DateTimeFormatter) provides clear, thread‑safe handling and proper internationalization.

JavaTimezonedatetime
0 likes · 9 min read
Why Java’s Legacy Date API Fails and How Java 8 Solves Time‑Zone Chaos
Selected Java Interview Questions
Selected Java Interview Questions
Oct 30, 2020 · Fundamentals

Java 8 Date and Time API Tutorial with Practical Code Examples

This article introduces Java 8's new date‑time API, explains why it replaces the mutable java.util.Date and non‑thread‑safe SimpleDateFormat, and provides a series of clear code examples demonstrating how to obtain current dates, manipulate specific dates, compare dates, handle time zones, work with periods, and format dates using the modern java.time classes.

APICodeExamplesJava
0 likes · 19 min read
Java 8 Date and Time API Tutorial with Practical Code Examples
Programmer DD
Programmer DD
May 30, 2020 · Databases

Which Date/Time Type Should You Use in Databases? A Practical Guide

This article examines common date and time storage options in databases—string, DateTime, Timestamp, and Unix timestamp—highlighting their characteristics, timezone handling, performance implications, and best-use scenarios, with Java code examples and migration tips.

Timezonedatetimetimestamp
0 likes · 7 min read
Which Date/Time Type Should You Use in Databases? A Practical Guide
Python Programming Learning Circle
Python Programming Learning Circle
Apr 13, 2020 · Fundamentals

Python Date and Time Manipulation Tutorial

This tutorial explains how to retrieve the current timestamp, format specific dates, convert between strings and datetime objects, perform time indexing with pandas, and execute time arithmetic and offsets in Python using datetime, pandas, and dateutil libraries.

Time Manipulationdatetimedateutil
0 likes · 5 min read
Python Date and Time Manipulation Tutorial
Java Captain
Java Captain
Mar 14, 2020 · Fundamentals

Design of the Java Platform Time System

This article explains the design of Java's time system, covering the epoch start, offset representation, timezone handling, historical changes, and the modern Java 8 date‑time API with practical code examples and usage guidelines.

APIJavaTimezone
0 likes · 26 min read
Design of the Java Platform Time System
Java Backend Technology
Java Backend Technology
Feb 6, 2020 · Backend Development

Master Java 8 Date & Time API: 18 Practical Code Examples

This tutorial introduces Java 8's new date‑time API, explains why the old java.util.Date and SimpleDateFormat were problematic, and demonstrates immutable, thread‑safe classes like LocalDate, LocalTime, LocalDateTime, ZoneId, YearMonth, and Instant through clear, runnable code snippets.

APIJavadatetime
0 likes · 15 min read
Master Java 8 Date & Time API: 18 Practical Code Examples
Java Captain
Java Captain
Jan 16, 2020 · Fundamentals

Java 8 Date and Time API: Practical Examples and Usage

This tutorial demonstrates how Java 8's new immutable, thread‑safe date‑time API (java.time) can be used to obtain the current date, extract year/month/day, create specific dates, compare dates, handle time zones, format and parse strings, and perform common date‑time calculations with clear code examples.

APIJavadatetime
0 likes · 14 min read
Java 8 Date and Time API: Practical Examples and Usage
ITPUB
ITPUB
Dec 9, 2019 · Fundamentals

Master Date Operations in pandas and SQL: Retrieval, Conversion, and Calculation

This tutorial walks through loading order data into pandas and SQL, then demonstrates how to retrieve current dates, extract date components, convert between readable dates and Unix timestamps, transform between 10‑digit and 8‑digit date formats, and perform date arithmetic using pandas, MySQL, and Hive.

HiveSQLdata-processing
0 likes · 16 min read
Master Date Operations in pandas and SQL: Retrieval, Conversion, and Calculation
Programmer DD
Programmer DD
Nov 24, 2019 · Backend Development

Master Java 8 Date & Time API: Thread‑Safe LocalDate, LocalTime, and LocalDateTime

This article explains why the legacy Date and SimpleDateFormat classes are problematic, introduces Java 8's immutable LocalDate, LocalTime, LocalDateTime and Instant classes, demonstrates thread‑safe creation, formatting, parsing, modification and calculation, and shows practical SpringBoot integration examples.

APIJavaSpringBoot
0 likes · 10 min read
Master Java 8 Date & Time API: Thread‑Safe LocalDate, LocalTime, and LocalDateTime
Sohu Tech Products
Sohu Tech Products
Nov 13, 2019 · Backend Development

Understanding Date and Time Handling in Java: From System.currentTimeMillis to Java 8 Date/Time API

This article explains the physical and philosophical notions of time, the challenges of representing time in computing, and provides a comprehensive guide to Java's date‑time APIs—including System.currentTimeMillis, System.nanoTime, java.util.Date, java.sql.Timestamp, Calendar, SimpleDateFormat, and the modern Java 8 classes such as Instant, LocalDate/Time, ZonedDateTime, and DateTimeFormatter—while highlighting common pitfalls and best practices.

Timezonedatetimejava8
0 likes · 23 min read
Understanding Date and Time Handling in Java: From System.currentTimeMillis to Java 8 Date/Time API
Programmer DD
Programmer DD
Oct 31, 2019 · Backend Development

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

This article introduces Java 8's new date‑time API, explains the shortcomings of the old java.util.Date classes, and provides practical examples for using Instant, LocalDate, LocalTime, LocalDateTime, ZonedDateTime, Duration, Period and DateTimeFormatter in real projects.

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