Misplaced Pages

Epoch (computing)

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

In computer science and computer programming , system time represents a computer system's notion of the passage of time. In this sense, time also includes the passing of days on the calendar .

#189810

52-398: In computing, an epoch is a fixed date and time used as a reference from which a computer measures system time . Most computer systems determine time as a number representing the seconds removed from a particular arbitrary date and time. For instance, Unix and POSIX measure time as the number of seconds that have passed since Thursday 1 January 1970 00:00:00 UT , a point in time known as

104-703: A "Noon Gun" is fired daily from the citadels in Halifax and Quebec City and from Signal Hill in St. John's, Newfoundland and Labrador . In the same manner, a Noon Gun has been fired in Cape Town , since 1806. The gun is fired daily from the Lion Battery at Signal Hill . The Noonday Gun serves a similar purpose in Hong Kong . The tradition, which started in the 1860s under British colonial rule, has become

156-581: A "clang" that originates from the Nauvoo Bell on Temple Square, in Salt Lake City, which has been a staple on the station since the early 1960s. In Canada, the national English-language non-commercial CBC Radio One network broadcast the daily National Research Council Time Signal from 5 November 1939 until 9 October 2023. The simulcast would occur daily at 1pm Eastern Time . Its French-language counterpart, Radio-Canada , broadcasts

208-599: 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 1 000 000 000 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

260-410: A fixed amount of space. Therefore, when the number of time units that have elapsed since a system's epoch exceeds the largest number that can fit in the space allotted to the time representation, the time representation overflows , and problems can occur. While a system's behavior after overflow occurs is not necessarily predictable, in most systems the number representing the time will reset to zero, and

312-435: A national or regional longwave digital signal; for example, station WWVB in the U.S. . The audio portions of the shortwave WWV and WWVH broadcasts can also be heard by telephone. The time announcements are normally delayed by less than 30 ms when using land lines from within the continental United States, and the stability (delay variation) is generally less than 1 ms. However, when mobile phones are used,

364-506: A signal that allows automatic synchronization of clocks, and commercial broadcasters still include time signals in their programming. Today, global navigation satellite systems ( GNSS ) radio signals are used to precisely distribute time signals over much of the world. There are many commercially available radio controlled clocks available to accurately indicate the local time, both for business and residential use. Computers often set their time from an Internet atomic clock source . Where this

416-677: A similar signal at noon. Vancouver radio station CKNW also broadcasts time signals, using a chime every half-hour. Time signals on CBC broadcasts may be delayed up to 3 seconds due to network processing delays between the local radio transmitter and the time signal origin in Ottawa. The CBC's predecessor, the Canadian National Railways Radio network , broadcast the time signal over its Ottawa station , CNRO (originally CKCH), at 9 pm daily and also on its Moncton station, CNRA, beginning in 1923. CNRA closed in 1931 but

468-653: A single 24-hour clock for the entire world. At a meeting of the Royal Canadian Institute on 8 February 1879 he linked it to the anti-meridian of Greenwich (now 180°). He suggested that standard time zones could be used locally, but they were subordinate to his single world time. Standard time came into existence in the United States on 18 November 1883. Earlier, on 11 October 1883, the General Time Convention, forerunner to

520-507: A source of time signals: The telegraphic distribution of time signals was made obsolete by the use of AM, FM, shortwave radio , Internet Network Time Protocol servers as well as atomic clocks in satellite navigation systems. Time signals have been transmitted by radio since 1905. There are dedicated radio time signal stations around the world. Time stations operating in the longwave radio band have highly predictable radio propagation characteristics, which gives low uncertainty in

572-408: A tally of CPU instructions or clock cycles and generally have no direct correlation to wall time . File systems keep track of the times that files are created, modified, and/or accessed by storing timestamps in the file control block (or inode ) of each file and directory . Most first-generation personal computers did not keep track of dates and times. These included systems that ran

SECTION 10

#1732802473190

624-670: A tourist attraction in recent times. A cannon was fired at one o'clock every weekday at Liverpool , at the Castle in Edinburgh , and also at Perth to establish the time. The Edinburgh " One O'Clock Gun " is still in operation. A cannon located at the top of Santa Lucia Hill, in Santiago , is shot every noon. In Rome , on the Janiculum , a hill west of the Tiber since 1904 a cannon

676-415: A visual signal, the dropping of a ball, to allow mariners to check the chronometers used for navigation. The advent of electrical telegraphs allowed widespread and precise distribution of time signals from central observatories. Railways were among the first customers for time signals, which allowed synchronization of their operations over wide geographic areas. Dedicated radio time signal stations transmit

728-587: Is a leap second , requiring GPS receiving devices to handle the update correctly. In contrast, leap seconds are transparent to GLONASS users. The complexities of calculating UTC from an epoch are explained by the European Space Agency in Galileo documentation under "Equations to correct system timescale to reference timescale". The following table lists epoch dates used by popular software and other computer-related systems. The time in these systems

780-408: Is common to use the same system, but with negative numbers. Such representation of time is mainly for internal use. On systems where date and time are important in the human sense, software will almost always convert this internal number into a date and time representing a human calendar. Computers do not generally store arbitrarily large numbers. Instead, each number stored by a computer is allotted

832-555: Is fired daily at noon towards the river as a time signal. This was introduced in 1847 by Pope Pius IX to synchronise all the church bells of Rome. It was situated in Castel Sant'Angelo until 1903 when it was moved to Monte Mario for a few months until it was placed in its current position. The cannon was silenced from the start of WWII for about twenty years until 21 April 1959, the 2712th anniversary of Rome's founding, and has been in use since then. For many years an old cannon

884-411: Is not available, a locally connected GNSS receiver can precisely set the time using one of several software applications. One sort of public time signal is a striking clock . These clocks are only as good as the clockwork that activates them, but they have improved substantially since the first clocks from the 14th century. Until modern times, a public clock such as Big Ben was the only time standard

936-512: Is produced and distributed in a similar manner), though unlike program content which is on a broadcast delay for content concerns, the time signal airs as-is over-the-air, meaning it can sometimes be talked over during a live news event or sports play-by-play. KYW-AM in Philadelphia broadcasts a time signal at the top of the hour along with its jingle . Bonneville International -owned news/talk station KSL (AM-FM) in Salt Lake City uses

988-532: Is still shot every night at 9 pm. (This gun was brought to Stanley Park in 1894 by the Department of Fisheries originally to warn fishermen of the 6:00 pm Sunday closing of fishing.) The 9:00 pm firing was later established as a time signal for the general population. Until a time gun was installed, the nearby Brockton Point lighthouse keeper detonated a stick of dynamite. Elsewhere in Canada,

1040-492: Is stored as the quantity of a particular time unit (days, seconds, nanoseconds, etc.) that has elapsed since a stated time (usually midnight UTC at the beginning of the given date). System 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

1092-656: The American Railway Association , approved a plan that divided the United States into several time zones . On that November day, the US Naval Observatory telegraphed a signal that coordinated noon at Eastern standard time with 11 am Central, 10 am Mountain, and 9 am Pacific standard time. A March 1905 issue of The Technical World describes the role of the United States Naval Observatory as

SECTION 20

#1732802473190

1144-578: The CBS Radio Network , of which WCBS is the flagship, air a "bong" (at a frequency of 440 Hz – the international standard for the musical note A ) that immediately precedes each top-of-the-hour network newscast. (The same bong could be heard on the CBS Television Network, at the top of the hour immediately before the beginning of any televised program, in the 1960s and 1970s.) An automated "chirp" at one second before

1196-726: The CP/M operating system, as well as early models of the Apple II , the BBC Micro , and the Commodore PET , among others. Add-on peripheral boards that included real-time clock chips with on-board battery back-up were available for the IBM PC and XT , but the IBM AT was the first widely available PC that came equipped with date/time hardware built into the motherboard . Prior to

1248-615: The Nelson Monument, Edinburgh ; the sailors' home Broomielaw , Glasgow; Liverpool and one at Deal, Kent , installed by the Admiralty . Telegraph signals were used regularly for time coordination by the United States Naval Observatory starting in 1865. By the late 1800s, many U.S. observatories were selling accurate time by offering a regional time signal service. Sandford Fleming proposed

1300-466: The Raspberry Pi , Arduino , and other similar systems ) do not always have internal hardware to keep track of time. Many such controller systems operate without knowledge of the external time. Those that require such information typically initialize their base time upon rebooting by obtaining the current time from an external source, such as from a time server or external clock, or by prompting

1352-507: The Unix epoch . The C# programming language and Windows NT systems up to and including Windows 11 and Windows Server 2022 measure time as the number of 100-nanosecond intervals that have passed since 00:00:00 UTC on 1 January in the years AD 1 and AD 1601 , respectively, making those points in time the epochs for those systems. Computing epochs are almost always specified as midnight Universal Time on some particular date. Software timekeeping systems vary widely in

1404-775: The Year 2038 problem . Other more subtle timekeeping problems exist in computing, such as accounting for leap seconds , which are not observed with any predictability or regularity. Additionally, applications that need to represent historical dates and times (for example, representing a date prior to the switch from the Julian calendar to the Gregorian calendar ) must use specialized timekeeping libraries . Finally, some software must maintain compatibility with older software that does not keep time in strict accordance with traditional timekeeping systems. For example, Microsoft Excel observes

1456-429: The resolution of time measurement; some systems may use time units as large as a day, while others may use nanoseconds . For example, for an epoch date of midnight UTC (00:00) on 1 January 1900, and a time unit of a second, the time of the midnight (24:00) between 1 January 1900 and 2 January 1900 is represented by the number 86400, the number of seconds in one day. When times prior to the epoch need to be represented, it

1508-682: The beginning of the hour. In New York, WCBS and WINS have distinctive beginning-of-the-hour tones, though the WINS signal is only approximate (several seconds error). WINS also has a tone at 30 minutes past the hour for those setting their clocks. WTIC uses the Morse code  V for victory to the tune of Beethoven's 5th Symphony at the beginning of the hour continuously, since 1943. Broadcast stations using iBiquity Digital's " HD Radio " system are contractually required to delay their analog broadcast by about eight seconds, so it remains in sync with

1560-404: The beginning of the year 2000. Even systems that allocate more storage to the time representation are not immune from this kind of error. Many Unix-like operating systems which keep time as seconds elapsed from the epoch date of 1 January 1970, and allot timekeeping enough storage to store numbers as large as 2 147 483 647 will experience an overflow problem on 19 January 2038. This is known as

1612-645: The broadcasts continued on CNRO when the station was acquired by the Canadian Radio Broadcasting Commission in 1933 and by the CBC in 1936 before going national in 1939. In Australia, many information-based radio stations broadcast time signals at the beginning of the hour, and a speaking clock service was also available until October 2019. However, the VNG dedicated time signal service has been discontinued. In Cuba, Radio Reloj

Epoch (computing) - Misplaced Pages Continue

1664-438: The computer system will think that the current time is the epoch time again. Most famously, older systems that counted time as the number of years elapsed since the epoch of 1 January 1900 and which only allotted enough space to store the numbers 0 through 99, experienced the Year 2000 problem . These systems (if not corrected beforehand) would interpret the date 1 January 2000 as 1 January 1900, leading to unpredictable errors at

1716-626: The delays are often more than 100 ms, due to the multiple access methods used to share cell channels. In rare instances when the telephone connection is made by satellite, the time is delayed by 250–500 ms. The audio from the broadcasts is available by telephone by dialling U.S. numbers (303) 499-7111 for WWV (Colorado), and (808) 335-4363 for WWVH (Hawaii). Calls (which are not toll-free) are disconnected after 2 minutes. Loran-C time signals formerly were also used for radio clock synchronization, by augmenting their highly accurate frequency transmissions with external measurements of

1768-564: The digital stream. Thus, network-generated time signals and service cues will also be delayed by about eight seconds. (Because of the delay, when WBEN-AM in Buffalo, New York was broadcasting time markers, and was simulcast on an FM station that broadcast in HD; the FM signal did not carry the time signal. WBEN does not broadcast in HD.) Local signals may also be delayed. The all-news radio stations of

1820-461: 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. Closely related to system time is process time , which is a count of the total CPU time consumed by an executing process . It may be split into user and system CPU time, representing the time spent executing user code and system kernel code, respectively. Process times are

1872-430: The fictional date of 29 February 1900 in order to maintain bug compatibility with older versions of Lotus 1-2-3 . Lotus 1-2-3 observed the date due to an error; by the time the error was discovered, it was too late to fix it—"a change now would disrupt formulas which were written to accommodate this anomaly". There are at least six satellite navigation systems, all of which function by transmitting time signals . Of

1924-404: The general public needed. Accurate knowledge of time of day is essential for navigation , and ships carried the most accurate marine chronometers available, although they did not keep perfect time. A number of accurate audible or visible time signals were established in many seaport cities to enable navigators to set their chronometers. In Vancouver , British Columbia , a " 9 O'Clock Gun "

1976-562: The hour signals a switch to the radio network broadcast. As an example, KNX , the CBS Radio Network all-news station in Los Angeles, broadcasts this "bong" sound on the hour. However, due to buffering of the digital broadcast on some computers, this signal may be delayed as much as 20 seconds from the actual start of the hour (this is presumably the same situation for all CBS Radio stations, as each station's digital stream

2028-459: 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 SYSTEMTIME , represented as a year/month/day/hour/minute/second/milliseconds value, and FILETIME , represented as

2080-405: The number of seconds required for the report of the time gun to reach various locations in the city. Because light travels much faster than sound , visible signals enabled greater precision than audible ones, although audible signals could operate better under conditions of reduced visibility. The first time ball was erected at Portsmouth , England in 1829 by its inventor Robert Wauchope . One

2132-438: The offsets of LORAN navigation signals against time standards. As radio receivers became more widely available, broadcasters included time information in the form of voice announcements or automated tones to accurately indicate the hour. The BBC has included time " pips " in its broadcasts from 1922. In the United States many information-based radio stations (full-service, all-news and news/talk) also broadcast time signals at

Epoch (computing) - Misplaced Pages Continue

2184-524: The only two satellite systems with global coverage, GPS calculates its time signal from an epoch, whereas GLONASS calculates time as an offset from UTC , with the UTC input adjusted for leap seconds . Of the only two other systems aiming for global coverage, Galileo calculates from an epoch and BeiDou calculates from UTC without adjustment for leap seconds. GPS also transmits the offset between UTC time and GPS time and must update this offset every time there

2236-458: The received time signals. Stations operating in the shortwave band can cover wider areas with relatively low-power transmitters, but the varying distance that the signal travels increases the uncertainty of the time signal on a scale of milliseconds. Radio time signal stations broadcast the time in both audible and machine-readable time code form that can be used as references for radio clocks and radio-controlled watches . Typically, they use

2288-604: 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). Time signal A time signal is a visible, audible, mechanical, or electronic signal used as a reference to determine the time of day . Church bells or voices announcing hours of prayer gave way to automatically operated chimes on public clocks ; however, audible signals (even signal guns) have limited range. Busy seaports used

2340-565: The tradition of a factory whistle becomes so deeply entrenched in a community that the whistle is maintained long after its original function as a time keeper became obsolete. For example, the University of Iowa 's power plant whistle has been reinstated several times by popular demand after numerous attempts to silence it. In 1861 and 1862, the Edinburgh Post Office Directory published time gun maps relating

2392-455: The user to manually enter the current time. The system clock is typically implemented as a programmable interval timer that periodically interrupts the CPU, which then starts executing a timer interrupt service routine. This routine typically adds one tick to the system clock (a simple counter) and handles other periodic housekeeping tasks ( preemption , etc.) before returning to the task the CPU

2444-482: 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 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

2496-604: The widespread availability of computer networks , most personal computer systems that did track system time did so only with respect to local time and did not make allowances for different time zones . With current technology, most modern computers keep track of local civil time, as do many other household and personal devices such as VCRs , DVRs , cable TV receivers , PDAs , pagers , cell phones , fax machines , telephone answering machines , cameras , camcorders , central air conditioners , and microwave ovens . Microcontrollers operating within embedded systems (such as

2548-753: The world, was initiated in 1852 by the Electric Telegraph Company in collaboration with the Astronomer Royal . Greenwich Mean Time was distributed by telegraph from the Greenwich Observatory . This included a system for synchronising the drop of the time ball at Greenwich with other time balls around the country, one of which was atop the Electric's offices in the Strand . Other synchronised time balls were atop

2600-539: Was executing before the interruption. The Misplaced Pages system time when this page was last generated. → Purge this page, and update this counter. The following tables illustrate methods for retrieving the 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

2652-460: Was fired "about noon" from a mountain near Kabul . In many Midwestern US cities where tornadoes are a common hazard, the emergency sirens are tested regularly at a specified time (say, noon each Saturday); while not primarily intended to mark the time, local people often check their watches when they hear this signal. In many non-seafaring communities, loud factory whistles served as public time signals before radio made them obsolete. Sometimes,

SECTION 50

#1732802473190

2704-668: Was installed in 1833 on the roof of the Royal Observatory in Greenwich , London, and the time ball has dropped at 1:00 pm every day since then. The first American time ball went into service in 1845. In New York City, the ceremonial Times Square Ball drop on New Year's Eve in Times Square is a vestige of a visual time signal. The first telegraph distribution of time signal in the United Kingdom, indeed, in

#189810