Tag

DateTime

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Jun 2, 2025 · Fundamentals

Python datetime: 20 Common Date and Time Operations with Code Examples

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.

DateTimePythondate-time
0 likes · 7 min read
Python datetime: 20 Common Date and Time Operations with Code Examples
macrozheng
macrozheng
May 13, 2025 · Databases

Choosing the Right MySQL Date/Time Type: DATETIME vs TIMESTAMP vs Unix Timestamp

This article explains why storing dates as strings is inefficient, compares MySQL DATETIME and TIMESTAMP—including storage size, range, timezone handling, and performance—and discusses when to use numeric Unix timestamps or PostgreSQL equivalents for reliable time data management.

DateTimeMySQLdatabase
0 likes · 14 min read
Choosing the Right MySQL Date/Time Type: DATETIME vs TIMESTAMP vs Unix Timestamp
Test Development Learning Exchange
Test Development Learning Exchange
May 11, 2025 · Backend Development

Using the default Parameter in Python's json Module for Custom Serialization

This article explains how the json module's default parameter can be used to serialize unsupported Python objects, such as datetime, by providing a custom function or by subclassing JSONEncoder, and includes clear code examples demonstrating both approaches.

DateTimeJSONPython
0 likes · 4 min read
Using the default Parameter in Python's json Module for Custom Serialization
macrozheng
macrozheng
May 7, 2025 · Backend Development

Mastering Date and Time Handling in Java: Thread Safety, Time Zones, and Performance

This article explores common pitfalls in Java date handling, explains thread‑unsafe SimpleDateFormat issues, demonstrates safe alternatives with ThreadLocal, Java 8 Time API, and zone‑aware calculations, and provides performance‑optimized patterns for high‑throughput applications.

DateTimeJavaSpring Boot
0 likes · 10 min read
Mastering Date and Time Handling in Java: Thread Safety, Time Zones, and Performance
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.

DateTimePythondate-time
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.

DateTimeMySQLdatabase
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.

DateTimeJavaThreadSafety
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 ProcessingDateTimePython
0 likes · 31 min read
50 Practical Python Code Snippets for File Operations, Data Processing, Web Requests, Date/Time Handling, and Utilities
IT Services Circle
IT Services Circle
Apr 10, 2025 · Databases

Choosing the Right Date/Time Storage Type in MySQL: DATETIME vs TIMESTAMP vs Unix Timestamp

This article explains why storing dates as strings is problematic, compares MySQL's DATETIME and TIMESTAMP types—including their storage size, range, and timezone behavior—provides practical SQL examples, discusses numeric Unix timestamps, and offers guidance on selecting the most suitable type for different scenarios.

DateTimeMySQLUnix timestamp
0 likes · 12 min read
Choosing the Right Date/Time Storage Type in MySQL: DATETIME vs TIMESTAMP vs Unix Timestamp
Java Tech Enthusiast
Java Tech Enthusiast
Apr 8, 2025 · Databases

Choosing the Right Date/Time Storage Type in MySQL and PostgreSQL

Choosing the proper MySQL or PostgreSQL date/time column—avoiding string types, understanding DATETIME’s literal storage versus TIMESTAMP’s automatic UTC conversion, considering PostgreSQL’s TIMESTAMP WITH/WITHOUT TIME ZONE equivalents, and weighing numeric Unix timestamps for speed—ensures correct time‑zone handling, storage efficiency, and future‑proof range.

DateTimeMySQLPostgreSQL
0 likes · 12 min read
Choosing the Right Date/Time Storage Type in MySQL and PostgreSQL
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.

Date HandlingDateTimePython
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.

DateTimePHPbackend
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 DesignDateTime
0 likes · 6 min read
Common MySQL Data Types and Selection Guidelines
Test Development Learning Exchange
Test Development Learning Exchange
Nov 14, 2024 · Fundamentals

Python Time Handling: datetime, time, and pytz Modules Tutorial

This article introduces Python's datetime, time, and pytz modules, demonstrating how to obtain the current date and time, format and parse strings, compute time differences, work with timestamps, perform sleep operations, and handle time zones with clear code examples.

DateTimePythonpytz
0 likes · 6 min read
Python Time Handling: datetime, time, and pytz Modules Tutorial
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.

DateTimeUnix timestampphp tutorial
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.

DateTimePHPbackend
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.

DateDateTimePHP
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.

Date HandlingDateTimePHP
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.

AsyncControllerDateTime
0 likes · 7 min read
Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts