System time
command In computing, system time represents a computer system's notion of a point in time. System time is measured by a system clock, which is typically implemented as a simple count of the number of ticks that have transpired since some arbitrary starting date, called the epoch. For example, Unix and POSIX-compliant systems encode system time ("Unix time") as the number of seconds elapsed since the start of the Unix epoch at 1 January 1970 00:00:00 UT, with exceptions for leap seconds. Systems that implement the 32-bit and 64-bit versions of the Windows API, such as Windows 9x and Windows NT, provide the system time as both , represented as a year/month/day/hour/minute/second/milliseconds value, and , represented as a count of the number of 100-nanosecond ticks since 1 January 1601 00:00:00 UT as reckoned in the proleptic Gregorian calendar. System time can be converted into calendar time, which is a form more suitable for human comprehension. For example, the Unix system time...
command]] In computing, system time represents a computer system's notion of a point in time. System time is measured by a system clock, which is typically implemented as a simple count of the number of ticks that have transpired since some arbitrary starting date, called the epoch. For example, Unix and POSIX-compliant systems encode system time ("Unix time") as the number of seconds elapsed since the start of the Unix epoch at 1 January 1970 00:00:00 UT, with exceptions for leap seconds. Systems that implement the 32-bit and 64-bit versions of the Windows API, such as Windows 9x and Windows NT, provide the system time as both , represented as a year/month/day/hour/minute/second/milliseconds value, and , represented as a count of the number of 100-nanosecond ticks since 1 January 1601 00:00:00 UT as reckoned in the proleptic Gregorian calendar. System time can be converted into calendar time, which is a form more suitable for human comprehension. For example, the Unix system time seconds since the beginning of the epoch translates into the calendar time 9 September 2001 01:46:40 UT. Library subroutines that handle such conversions may also deal with adjustments for time zones, daylight saving time (DST), leap seconds, and the user's locale settings. Library routines are also generally provided that convert calendar times into system times. Many implementations that currently store system times as 32-bit integer values will suffer from problems such as the impending Year 2038 problem. These time values will overflow ("run out of bits") after the end of their system time epoch, leading to software and hardware errors. These systems will require some form of remediation, similar to efforts required to solve the earlier Year 2000 problem. This will also be a potentially much larger problem for existing data file formats that contain system timestamps stored as 32-bit values. ==Retrieving the current system time== The following tables illustrate methods for retrieving the current system time in various operating systems, programming languages, and applications. Values marked by (*) are system-dependent and may differ across implementations. All dates are given as Gregorian or proleptic Gregorian calendar dates. The resolution of an implementation's measurement of time does not imply the same precision of such measurements. For example, a system might return the current time as a value measured in microseconds, but actually be capable of discerning individual clock ticks with a frequency of only 100 Hz (10 ms). ===Operating systems=== ===Programming languages and applications=== ==See also== ==Notes== ==References== ==External links== Critical and Significant Dates, J. R. Stockton (retrieved 3 December 2015) The Boost Date/Time Library (C++) The Boost Chrono Library (C++) The Chronos Date/Time Library (Smalltalk) Joda Time, The Joda Date/Time Library (Java) The Perl DateTime Project (Perl) date: Ruby Standard Library Documentation (Ruby)
References
- ^ Ralf D. Brown (2000). "Int 0x1A, AH=0x00" . Ralf Brown's Interrupt List . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "OpenVMS and the year 2038" . HP . Retrieved 2021-04-17 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1618614000.0
- ^ IBM intends to extend the date range on future systems beyond 2042. z/Architecture Principles of Operation , (Poughkeepsie, New York:International Business Machines, 2007) 1-15, 4-45 to 4-47. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Expanded 64-bit time values" . IBM . Retrieved 2021-04-18 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1618700400.0
- ^ Jonathan de Boyne Pollard. "The 32-bit Command Interpreter" . On OS/2 Warp 4, date and time can both operate well beyond the year 2000, and even well beyond the year 2038, and in fact up to the year 2079, which is the limit for OS/2 Warp 4's real-time clock. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Ralf D. Brown (2000). "Int 0x1A, AH=0x02" . Ralf Brown's Interrupt List . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Ralf D. Brown (2000). "Int 0x1A, AH=0x04" . Ralf Brown's Interrupt List . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "CP/M Plus (CP/M Version 3.0) Operating System Guide" (PDF) . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Matlab Help" . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Douglas Wegscheild, R. Schertler, and Jarkko Hietaniemi, "Time::HiRes" . CPAN - Comprehensive Perl Archive Network . 2011 . Retrieved 27 October 2011 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Time class" . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Yugui (18 August 2010). "Ruby 1.9.2 is released" . The new 1.9.2 is almost compatible with 1.9.1, except these changes: ... Time is reimplemented. The bug with year 2038 is fixed. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "MIT/GNU Scheme 9.2: 15.5 Date and Time" . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "BDOS system calls" . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Ralf D. Brown (2000). "Int 0x21, AH=0x2c" . Ralf Brown's Interrupt List . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Ralf D. Brown (2000). "Int 0x21, AH=0x2a" . Ralf Brown's Interrupt List . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "CFAbsoluteTimeGetCurrent" . Apple Developer Documentation . 2007. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b "CFRunLoopTimerCreate" . Apple Developer Documentation . Retrieved 5 August 2025 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b The Apple Developer Documentation is not clear on the precision & range of CFAbsoluteTime/CFTimeInterval, except in the CFRunLoopTimerCreate documentation which refers to 'sub-millisecond at most' precision. However, the similar type NSTimeInterval appears to be interchangeable, and has the precision and range listed. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b "NSTimeInterval - Foundation" . Apple Developer Documentation . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Why is Wednesday, November 17, 1858 the base time for OpenVMS (VAX VMS)?" . Stanford University . 24 July 1997. Archived from the original on 24 July 1997 . Retrieved 8 January 2020 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b c "Time and Time Correction in Erlang" . www.erlang.org . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b c "DateTime.Ticks Property" . Microsoft Docs . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.SysUtils.CurrentYear" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.SysUtils.Date" . Embarcadero Developer Network' . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Date and Time Support" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.SysUtils.DayOfWeek" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.SysUtils.GetTime" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.SysUtils.Now" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.SysUtils.Time" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.DateUtils.Today" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.DateUtils.Tomorrow" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "System.DateUtils.Yesterday" . Embarcadero Developer Network . 2013. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "SYSTEM_CLOCK" . Intel Fortran Compiler 19.0 Developer Guide and Reference . 29 April 2019 . Retrieved 23 July 2019 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "SYSTEM_CLOCK — Time function" . The GNU Fortran Compiler . Retrieved 27 October 2011 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ Ruth E. Goldenberg; Lawrence J. Kenah; Denise E. Dumas (1991). VAX/VMS Internals and Data Structures, Version 5.2 . Digital Press. ISBN 978-1555580599 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Dates" . Julia 1.12 Documentation . Retrieved 26 November 2025 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "XL2000: Early Dates on Office Spreadsheet Component Differ from Excel" . Microsoft Support . 2003. Archived from the original on 24 October 2007. In the Microsoft Office Spreadsheet Component, the value 0 evaluates to the date December 30, 1899 and the value 1 evaluates to December 31, 1899. ... In Excel, the value 0 evaluates to January 0, 1900 and the value 1 evaluates to January 1, 1900. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b c "DateTime.Now Property" . Microsoft Docs . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Using the Get-Date Cmdlet" . Microsoft Docs . 22 October 2009 . Retrieved 23 July 2019 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Windows PowerShell Tip of the Week – Formatting Dates and Times" . Microsoft Docs . 26 May 2010 . Retrieved 23 July 2019 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b c "DateTime.UtcNow Property" . Microsoft Docs . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b c d The C standard library does not specify any specific resolution, epoch, range, or datatype for system time values . The C++ library encompasses the C library, so it uses the same system time implementation as C. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "JSR-310 Java Time System" . Java Platform, Standard Edition 8: API Specification . 2014 . Retrieved 15 January 2015 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ "Clock.systemUTC() and other methods" . Java Platform, Standard Edition 8: API Specification . 2014 . Retrieved 15 January 2015 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b "System.nanoTime() method" . Java Platform, Standard Edition 6: API Specification . 2015 . Retrieved 23 July 2019 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
- ^ a b "VSI C Run-Time Library Reference Manual for OpenVMS Systems" (PDF) . VSI. November 2020 . Retrieved 2021-04-17 . Wikipedia revision 1358686940, retrieved 2026-11-19 · 1618614000.0
- ^ a b z/Architecture Principles of Operation (PDF) . Poughkeepsie, New York: International Business Machines. 2007. Wikipedia revision 1358686940, retrieved 2026-11-19 · 1795042800.0
Cite this
"System time". 1781072463. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1358686940 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy