Movatterモバイル変換


[0]ホーム

URL:


본문으로 이동
위키백과
검색

시스템 시간

위키백과, 우리 모두의 백과사전.
유닉스date 명령어

컴퓨터 과학컴퓨터 프로그래밍에서시스템 시간(system time)은 시간의 흐름에 따른 컴퓨터 시스템의 개념을 말한다. 이같은 문맥에서 시간은달력의 일수가 경과하는 것도 포함한다.

시스템 시간은 시스템 클록에 의해 측정되며, 이는 일반적으로기원일이라 부르는 특정한 시작일 이래로 발생된, 틱(tick)의 수를 단순히 세는 것으로 구현된다. 이를테면유닉스POSIX 호환 시스템들은 시스템 시간(유닉스 시간)을윤초를 제외하고 1 January 1970 00:00:00UT유닉스 시간 시작점 이후로 경과한 초 단위의 수로 인코딩한다.윈도우 9x,윈도우 NT와 같이 32비트와 64비트 버전의윈도우 API를 구현하는 시스템들은 연도/월/일/시간/분/초/밀리초 값을 대표하는SYSTEMTIME과 1 January 1601 00:00:00 UT 이후의 100 나노초의 틱의 수를 세는FILETIME을 시스템 시간으로 둘 다 제공한다.

시스템 시간은날짜 시간으로 변환할 수 있으며, 이는 인간이 이해하기에 더 적합한 형태이다.

역사

[편집]

대부분의 1세대PC들은 날짜와 시간을 추적하지 못했다. 여기에는CP/M 운영 체제를 구동하던 시스템뿐 아니라 초기 모델의애플 II,BBC 마이크로,코모도어 PET도 포함되었다.IBM PC/AT메인보드에 날짜/시간 하드웨어가 장착된 최초의 상용화된 개인용 컴퓨터였다. 온보드배터리 백업이 있는실시간 시계 칩이 포함된 애드온주변 기판IBM PCXT용으로 이용이 가능하게 되었다.컴퓨터 네트워크가 널리 사용할 수 있기 전까지 시스템 시간을 추적하였던 대부분의 개인용 컴퓨터 시스템들은 오직 로컬 시간과만 관계를 맺었고시간대에 대한 허용을 두지 않았다.

시스템 시간의 반환

[편집]
12 11월 2025 11:34:43 UTC

이 문서가 마지막으로 생성될 때의 위키백과 시스템 시간이다.
이 문서를 새로 고친 다음 이 카운터를 업데이트합니다.

운영 체제

[편집]
운영 체제명령어 또는 함수해상도기원 또는 범위
안드로이드java.lang.System.currentTimeMillis()1 ms1 January 1970
바이오스 (IBM PC)INT 1Ah, AH=00h[1]54.931 ms
18.204 Hz
Midnight of the current day
INT 1Ah, AH=02h[2]1 sMidnight of the current day
INT 1Ah, AH=04h[3]1 day1 January 1980 to 31 December 1999 or 31 December 2079 (system dependent)
CP/MSystem Control Block:[4]
scb$base+58h, Days since 1 Jan 1978
scb$base+5Ah, Hour (BCD)
scb$base+5Bh, Minute (BCD)
scb$base+5Ch, Second (BCD)
1 s1 January 1978 to September 2067
BDOS function69h (T_GET):[5]
word, Days since 1 January 1978
byte, Hour (BCD)
byte, Minute (BCD)
byte, Second (BCD)
도스 (마이크로소프트)C:\>DATE
C:\>TIME
10 ms1 January 1980 to 31 December 2099
INT 21h, AH=2Ch SYSTEM TIME[6]
INT 21h, AH=2Ah SYSTEM DATE[7]
iOS (애플)CFAbsoluteTimeGetCurrent()[8]< 1 ms1 January 2001 ±10,000 years
맥 OS (애플)CFAbsoluteTimeGetCurrent()[9]< 1 ms[10][note 1]1 January 2001 ±10,000 years[10][note 1]
OpenVMS (HP)SYS$GETTIM()100 ns17 November 1858 to AD 31,086
Z/OS (IBM)STCK[11]2−12 μs
244.14 ps[12]
1 January 1900 to 17 September 2042 UT[13]
유닉스,POSIX
(see alsoTime.h)
$date
Time.h
1 s(*)
1 January 1970 to19 January 2038
1 January 1970 to AD 292,277,026,596
gettimeofday

()

1μs
clock_gettime

()

1 ns
윈도우 (마이크로소프트)GetSystemTime()1 ms1 January 1601 to AD 30,828
GetSystemTimeAsFileTime()100 ns

프로그래밍 언어 및 응용 프로그램

[편집]
언어/응용 프로그램함수 또는 변수해상도기원 또는 범위
AdaAda.Calendar.Clock100 μs to
20 ms (*)
1 January 1901 to 31 December 2099 (*)
AWKsystime()1 s(*)
베이직,en:True BASICDATE,DATE$
TIME,TIME$
1 s(*)
비즈니스 베이직DAY,TIM0.1 s(*)
C (seeTime.h)Time.h1 s (*)[note 2](*)[note 2]
C++std::time()
std::chrono::system_clock::now()
1 s (*)[note 2]
1 ns (C++11, OS dependent)
(*)[note 2]
C# (마이크로소프트)System.DateTime.Now[14]
System.DateTime.UtcNow[15]
100 ns[16]1 January 0001 to 31 December 9999
CICS (IBM)ASKTIME1 ms1 January 1900
코볼FUNCTION CURRENT-DATE1 s1 January 1601
커먼 리스프(get-universal-time)1 s1 January 1900
Delphi (볼랜드)date
time
1 ms
(부동소수점)
1 January 1900
Delphi
(엠바카데로 테크놀로지스)[17]
System.SysUtils.Time[18]1 ms0/0/0000 0:0:0:000 to 12/31/9999 23:59:59:999 [sic]
System.SysUtils.GetTime[19] (alias forSystem.SysUtils.Time)
System.SysUtils.Date[20]0/0/0000 0:0:0:000 to 12/31/9999 0:0:0:000 [sic]
System.DateUtils.Today[21]
System.DateUtils.Tomorrow[22]
System.DateUtils.Yesterday[23]
System.SysUtils.Now[24]1 s0/0/0000 0:0:0:000 to 12/31/9999 23:59:59:000 [sic]
System.SysUtils.DayOfWeek[25]1 day1 to 7
System.SysUtils.CurrentYear[26]1 year(*)
en:Emacs Lisp(current-time)1 μs (*)1 January 1970
Erlang (에릭슨)erlang:system_time(),os:system_time()[27]OS dependent, e.g. on리눅스 1ns[27]1 January 1970[27]
Excel (마이크로소프트)date()?0 January 1900[28]
포트란DATE_AND_TIME
SYSTEM_CLOCK
(*)[29]

[30]

1 January 1970
CPU_TIME1 μs
Gotime.Now()1 ns1 January 0001
하스켈Time.getClockTime1 ps (*)1 January 1970 (*)
Data.Time.getCurrentTime1 ps (*)17 November 1858 (*)
Java (Sun)java.util.Date()
System.currentTimeMillis()
1 ms1 January 1970
System.nanoTime()[31]1 nsarbitrary[31]
Clock.systemUTC()[32]1 nsarbitrary[33]
자바스크립트(new Date()).getTime()
Date.now()
1 ms1 January 1970
MATLABnow1 s0 January 0000[34]
en:MUMPS$H (short for$HOROLOG)1 s31 December 1840
LabVIEWTick Count1 ms00:00:00.000 1 January 1904
Get Date/Time in Seconds1 ms00:00:00.000 1 January 1904
오브젝티브-C[NSDate timeIntervalSinceReferenceDate]< 1 ms[35]1 January 2001 ±10,000 Years[35]
OCamlUnix.time()1 s1 January 1970
Unix.gettimeofday()1 μs
Extended PascalGetTimeStamp()1 s(*)
터보 파스칼GetTime()
GetDate()
10 ms(*)
time()1 s1 January 1970
Time::HiRes::time[36]1 μs
PHPtime()
mktime()
1 s1 January 1970
microtime()1 μs
파이썬datetime.now().timestamp()1 μs (*)1 January 1970
RPGCURRENT(DATE),%DATE
CURRENT(TIME),%TIME
1 s1 January 0001 to 31 December 9999
CURRENT(TIMESTAMP),%TIMESTAMP1 μs
루비Time.now()[37]1 μs (*)1 January 1970 (to 19 January 2038 prior to Ruby 1.9.2[38])
스몰토크Time microsecondClock
(VisualWorks)
1 s(ANSI)
1 μs(VisualWorks)
1 s(Squeak)
1 January 1901 (*)
Time totalSeconds
(Squeak)
SystemClock ticksNowSinceSystemClockEpoch
(Chronos)
SQLCURDATE()
CURTIME()
GETDATE()
NOW()
SYSDATE()
3 ms1 January 1753 to 31 December 9999 (*)
60 s1 January 1900 to 6 June 2079
en:Standard MLTime.now()1 μs (*)1 January 1970 (*)
TCL[clock seconds]1 s1 January 1970
[clock milliseconds]1 ms
[clock microseconds]1 μs
[clock clicks]1 μs (*)(*)
윈도우 파워셸Get-Date[39][40]100 ns[16]1 January 0001 to 31 December 9999
[DateTime]::Now[14]
[DateTime]::UtcNow[15]
비주얼 베이직 닷넷 (마이크로소프트)System.DateTime.Now[14]
System.DateTime.UtcNow[15]
100 ns[16]1 January 0001 to 31 December 9999

같이 보기

[편집]

내용주

[편집]
  1. 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 typeNSTimeInterval appears to be interchangeable, and has the precision and range listed.
  2. TheC 표준 라이브러리 does not specify any specific resolution, epoch, range, or datatype forsystem time values. The C++ library encompasses the C library, so it uses the same system time implementation as C.

각주

[편집]
  1. Ralf Brown, "Int 0x1A, AH=0x00" in랄프 브라운의 인터럽트 리스트, 2000,http://www.delorie.com/djgpp/doc/rbinter/ix/1A/00.html
  2. Ralf Brown, "Int 0x1A, AH=0x02" in랄프 브라운의 인터럽트 리스트, 2000,http://www.delorie.com/djgpp/doc/rbinter/ix/1A/02.html
  3. Ralf Brown, "Int 0x1A, AH=0x04" in랄프 브라운의 인터럽트 리스트, 2000,http://www.delorie.com/djgpp/doc/rbinter/ix/1A/04.html
  4. “CP/M Plus (CP/M Version 3.0) Operating System Guide”(PDF). 
  5. “BDOS system calls”. 
  6. Ralf Brown, "Int 0x21, AH=0x2c" in랄프 브라운의 인터럽트 리스트, 2000,http://www.delorie.com/djgpp/doc/rbinter/ix/21/2C.html
  7. Ralf Brown, "Int 0x21, AH=0x2a" in랄프 브라운의 인터럽트 리스트, 2000,http://www.delorie.com/djgpp/doc/rbinter/ix/21/2A.html
  8. "Time Utilities Reference" iniOS Developer Library (Apple, 2007).
  9. "Time Utilities Reference" inMac OS X Developer Library (Apple, 2007).
  10. "CFRunLoopTimer Reference" inMac OS X Developer Library (Apple, 2007).
  11. z/Architecture Principles of Operation (Poughkeepsie, New York:International Business Machines, 2007) 7-187.
  12. z/Architecture Principles of Operation, (Poughkeepsie, New York:International Business Machines, 2000) 4-45, 4-46.
  13. 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.
  14. "DateTime.Now Property" in마이크로소프트 개발자 네트워크 (Microsoft, 2010) last updated July 2010.
  15. "DateTime.UtcNow Property" inMSDN (Microsoft, 2011)
  16. "DateTime.Ticks Property inMSDN (Microsoft, 2010) last updated May 2010.
  17. "Date and Time Support"보관됨 2018-01-09 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  18. "System.SysUtils.Time"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  19. "System.SysUtils.GetTime"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  20. "System.SysUtils.Date"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  21. "System.DateUtils.Today"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  22. "System.DateUtils.Tomorrow"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  23. "System.DateUtils.Yesterday"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  24. "System.SysUtils.Now"보관됨 2014-05-03 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  25. "System.SysUtils.DayOfWeek"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  26. "System.SysUtils.CurrentYear"보관됨 2014-04-05 -웨이백 머신 inEmbarcadero Developer Network (Embarcadero Technologies, 2013)
  27. Time and Time Correction in Erlang
  28. "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."XL2000: Early Dates on Office Spreadsheet Component Differ from Excel in (Microsoft Support, 2003).
  29. "SYSTEM_CLOCK", documentation for FORTRAN compiler, Intel Corp., accessed 27 October 2011.
  30. SYSTEM_CLOCK - Time function" inThe GNU Fortran Compiler (Free Software Foundation) accessed 27 October 2011.
  31. System.nanoTime() method inJava Platform, Standard Edition 6: API Specification (Oracle, 2011) accessed 27 October 2011.
  32. Clock.systemUTC() and other methods inJava Platform, Standard Edition 8: API Specification (Oracle, 2014) accessed 15 January 2015.
  33. JSR-310 Java Time System inJava Platform, Standard Edition 8: API Specification (Oracle, 2014) accessed 15 January 2015.
  34. [1]보관됨 2016-07-28 -웨이백 머신 Matlab Help
  35. "Foundation Data Types Reference" inMac OS X Developer Library (Apple, 2011) last modified 6 July 2011, section NSTimeInterval.
  36. Douglas Wegscheild, R. Schertler, and Jarkko Hietaniemi,"Time::HiRes" (CPANComprehensive Perl Archive Network, 2011) accessed 27 October 2011.
  37. Time class inRuby-Doc.org: Help and documentation for the Ruby programming language (Scottsdale, AZ: James Britt and Neurogami) accessed 27 October 2011.
  38. Ruby 1.9.2 Release Notes보관됨 2016-09-29 -웨이백 머신 inRuby-Doc.org: Help and documentation for the Ruby programming language (Scottsdale, AZ: James Britt and Neurogami) accessed 27 October 2011.
  39. “Using the Get-Date Cmdlet”. Microsoft TechNet. 2013년 12월 11일에 확인함. 
  40. “Windows PowerShell Tip of the Week - Formatting Dates and Times”. Microsoft TechNet. 2013년 12월 11일에 확인함. 

외부 링크

[편집]
핵심 개념
시간 표준
측정
크로노메트리
측정 시스템
달력
시계
시간 철학
인간 경험
시간 사용
과학의 시간
지질학
물리학
기타 분야
관련
국제 표준
template illustration
template illustration
폐기된 표준
물리학의 시간
시계학
역법
고고학 및 지질학
천문학적 연대학
기타시간 단위
관련 주제
원본 주소 "https://ko.wikipedia.org/w/index.php?title=시스템_시간&oldid=39956315"
분류:
숨은 분류:

[8]ページ先頭

©2009-2025 Movatter.jp