Tag

timezone

0 views collected around this technical thread.

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

DateFormattingDateTimeJava
0 likes · 10 min read
Common Java Date Handling Pitfalls: Leap Year, Formatting, Timezone, and Thread Safety
FunTester
FunTester
Feb 21, 2024 · Backend Development

Common Time-Related Bugs and Protection Strategies

This article analyzes six typical time‑related bugs—including timezone conversion, daylight‑saving anomalies, precision mismatches, comparison errors, storage pitfalls, and permission expirations—and provides concrete design and testing safeguards for developers.

Backend Developmentdate bugssoftware testing
0 likes · 10 min read
Common Time-Related Bugs and Protection Strategies
php中文网 Courses
php中文网 Courses
Nov 20, 2023 · Backend Development

Using PHP Timestamp Functions: time(), strtotime(), date(), and Related Utilities

This article explains how to use PHP's timestamp functions—including time(), strtotime(), date(), and mktime()—to obtain current timestamps, convert strings to timestamps, format dates, handle time zones, and perform relative time calculations with practical code examples.

Datebackendstrtotime
0 likes · 5 min read
Using PHP Timestamp Functions: time(), strtotime(), date(), and Related Utilities
php中文网 Courses
php中文网 Courses
Oct 24, 2023 · Backend Development

Understanding PHP's date_default_timezone_get() Function and Proper Timezone Handling

This article explains the importance of timezones in PHP date and time processing, demonstrates how to use date_default_timezone_get() and date_default_timezone_set() with code examples, and outlines practical scenarios for retrieving and managing the default timezone.

DateTimebackenddate_default_timezone_get
0 likes · 6 min read
Understanding PHP's date_default_timezone_get() Function and Proper Timezone Handling
php中文网 Courses
php中文网 Courses
Oct 23, 2023 · Backend Development

Using date_default_timezone_set() to Set the Default Timezone in PHP

This article explains the importance of timezone settings in PHP, details the syntax and usage of the date_default_timezone_set() function, provides code examples, notes return values, and mentions alternative configuration via php.ini for global timezone configuration.

Backend DevelopmentDate and TimePHP
0 likes · 4 min read
Using date_default_timezone_set() to Set the Default Timezone in PHP
Bilibili Tech
Bilibili Tech
Aug 18, 2023 · Frontend Development

Common Time-Related Bugs and Protection Strategies in Software Development

The article reviews six common time‑related bugs—conversion, DST, precision, comparison, storage, and permission errors—explains their causes such as mismatched zones, outdated DST data, unit mismatches, overflow, and expired windows, and recommends development, testing, and operational safeguards like UTC normalization, unit definitions, proper data types, and monitoring.

DSTfrontendsoftware testing
0 likes · 11 min read
Common Time-Related Bugs and Protection Strategies in Software Development
Test Development Learning Exchange
Test Development Learning Exchange
Jun 4, 2023 · Fundamentals

Using Python dateutil for Date and Time Parsing, Manipulation, and Formatting

This article introduces the Python dateutil library, showing how to install it, parse various date strings, perform date arithmetic with relativedelta, handle time zones, format dates, compute intervals, parse ISO strings, and generate recurring events through clear code examples.

DateTimeParsingdateutil
0 likes · 8 min read
Using Python dateutil for Date and Time Parsing, Manipulation, and Formatting
ByteFE
ByteFE
Jan 9, 2023 · Frontend Development

Understanding JavaScript Date Handling and Comparing Popular Date Libraries

This article examines why native JavaScript Date falls short for time handling, explains time measurement standards and time zones, and compares four major date libraries—MomentJS, DayJS, date-fns, and native Date—highlighting their advantages, drawbacks, and appropriate usage scenarios.

DateMomentJSdate-fns
0 likes · 12 min read
Understanding JavaScript Date Handling and Comparing Popular Date Libraries
Efficient Ops
Efficient Ops
Jul 14, 2022 · Operations

Essential Docker Image Building Tips to Shrink Size and Speed Up Builds

This article presents practical Dockerfile optimization techniques—including clean build contexts, lightweight base images, regional package mirrors, timezone configuration, virtual build environments, and layer minimization—to dramatically reduce image size and improve build efficiency.

AlpineDockerDockerfile
0 likes · 15 min read
Essential Docker Image Building Tips to Shrink Size and Speed Up Builds
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 6, 2021 · Databases

MySQL Time Zone Configuration: Installation Standards, Session Variables, and Their Impact on Data

This article explains how to set the correct time zone for MySQL during installation, describes the relevant startup parameters and system variables, demonstrates their effect on functions like NOW() and TIMESTAMP columns, and provides practical solutions for Java applications, data migration, and dump utilities.

ConfigurationMySQLSQL
0 likes · 11 min read
MySQL Time Zone Configuration: Installation Standards, Session Variables, and Their Impact on Data
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.

ARROWDateTimedateutil
0 likes · 24 min read
Comprehensive Guide to Python Time Handling: time, datetime, pytz, dateutil, and Arrow
DevOps Cloud Academy
DevOps Cloud Academy
Aug 29, 2021 · Operations

Handling Timezone and System Time Issues in Linux Containers and Kubernetes

This article explains the differences between hardware and system clocks, how Linux manages time zones, why container images often have incorrect default time zones, and provides multiple practical methods—including Dockerfile settings, volume mounts, environment variables, PodPreset, and libfaketime—to correctly set or adjust time in Docker and Kubernetes environments.

DockerKubernetesLinux
0 likes · 13 min read
Handling Timezone and System Time Issues in Linux Containers and Kubernetes
Laravel Tech Community
Laravel Tech Community
Mar 15, 2021 · Backend Development

PHP date_default_timezone_set() Function: Description, Parameters, Return Value, and Example

This article explains the PHP date_default_timezone_set() function, detailing its purpose of setting a default timezone for all date/time functions, the required timezone identifier parameter, the boolean return values, and provides a practical code example with expected output.

PHPbackenddate_default_timezone_set
0 likes · 2 min read
PHP date_default_timezone_set() Function: Description, Parameters, Return Value, and Example
Laravel Tech Community
Laravel Tech Community
Mar 14, 2021 · Backend Development

PHP date_default_timezone_get() – Retrieve the Default Timezone Used by Date/Time Functions

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.

backenddate-timephp-functions
0 likes · 2 min read
PHP date_default_timezone_get() – Retrieve the Default Timezone Used by Date/Time Functions