Tagged articles
time
24 articles · Page 1 of 1
This article walks through eight often‑overlooked Go features—including direct integer iteration in Go 1.22, the ~T generic constraint, UTF‑8 string length pitfalls, nil‑interface quirks, nil‑pointer method calls, proper timer usage with contexts, zero‑size struct semaphores, and the JSON "-" tag—showing concrete code examples and the reasoning behind each behavior.
ContextGenericsGo
0 likes · 9 min read

Learn how PHP’s built-in time() function returns the current Unix timestamp, how to use it without parameters, and see practical code examples for displaying timestamps, comparing dates with strtotime(), and formatting dates with date() and timezone settings.
PHPdate handlingtime
0 likes · 4 min read

This article explains PHP's time() function, describing how it returns the current Unix timestamp, demonstrates basic usage with code examples, shows how to compare dates and format the timestamp, and provides practical snippets for common time‑related tasks in backend development.
BackendPHPdate handling
0 likes · 4 min read

This tutorial demonstrates three C functions—time(), clock() and gettimeofday()—for measuring program execution time with second, sub‑second and microsecond precision, provides complete example code for each, and explains their accuracy differences and practical considerations.
Performance Measurementclock()gettimeofday()
0 likes · 4 min read

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.
Pythonpytztime
0 likes · 6 min read

This guide explains how to use the Linux /usr/bin/time utility to measure program resource usage, covering its syntax, useful options, custom format strings, a full list of resource specifiers, and the difference between the external command and the shell builtin.
Linuxcommand-lineperformance
0 likes · 9 min read

This article explains the PHP time() function, describing how it returns the current Unix timestamp, how to use it without parameters, and provides multiple code examples for retrieving timestamps, comparing dates, and formatting the current date and time.
DatePHPbackend development
0 likes · 4 min read

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.
Datestrtotimetime
0 likes · 5 min read

This article explains the evolution of time concepts, the development of various clocks, the definitions of GMT, UTC, and atomic time, and how network time protocols like NTP synchronize computers, highlighting practical considerations for using local versus server time in time‑critical applications.
NTPUTCclock synchronization
0 likes · 22 min read

This article explores several Python techniques—including the time, datetime, and dateutil modules, as well as pure arithmetic and NumPy—to reliably transform a "HH:MM:SS" string into the total number of seconds, while addressing timezone and year‑offset nuances.
ConversionDATETIMEDateUtil
0 likes · 7 min read

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.
DATETIMEPythoncalendar
0 likes · 18 min read

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.
ArrowDATETIMEDateUtil
0 likes · 39 min read

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

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.
DATETIMETutorialfunctions
0 likes · 6 min read

This article introduces Go's time package, explaining its core types such as Month, Weekday, Duration, Location, and Time, and demonstrates how to work with timers, tickers, and time parsing through clear examples and code snippets.
DATETIMEDurationGo
0 likes · 13 min read

This article introduces Python functions, demonstrates how to define and call them, and explores essential time-related modules such as time, datetime, calendar, and random, providing clear code examples and output screenshots to help beginners grasp practical usage.
DATETIMEPythonfunctions
0 likes · 6 min read

This article explains PHP's time() function, which returns the current Unix timestamp, and demonstrates how to calculate and display the current date and the date one week later using both arithmetic and strtotime methods.

The PHP gettimeofday() function provides access to the system's current time, returning either an associative array with seconds, microseconds, timezone offset, and DST information or a floating‑point timestamp when the optional return_float parameter is set to true.
PHPgettimeofdaytime
0 likes · 2 min read

This tutorial walks through Python's time and datetime modules, covering timestamps, sleep, local time, formatting, parsing, arithmetic, and the dateutil library for flexible month and year adjustments, with code examples and visual output to illustrate each concept.
DATETIMEDateUtilPython
0 likes · 9 min read

The article explains the two ways to express time—human time (year, month, day) and machine time (milliseconds since the 1970 epoch)—detailing how machine time maps to UTC, how UTC relates to local time zones, and why conversions are necessary for accurate time handling in software.
JavaUTCepoch
0 likes · 5 min read

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.
APIDATETIMEJava
0 likes · 15 min read

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.
APIDATETIMEJava
0 likes · 14 min read

This article walks through practical regular‑expression exercises, explains each solution with clear JavaScript examples, and then expands to real‑world patterns for matching dollar amounts, 24‑hour times, IP addresses, quoted strings, and HTML tags, offering tips for building robust regexes.
IP addresshtml-tagpattern-matching
0 likes · 13 min read

The article philosophically examines whether time is a basic material of the universe by discussing cellular clocks, Planck time, black holes, deterministic causality, and Rafael Sorkin's causal‑set theory, highlighting paradoxes that arise when treating time as a fundamental substance.
Physicsblack holescausality
0 likes · 7 min read
