온라인 타임스탬프 변환 도구

타임스탬프 변환

현재 Unix 타임스탬프(초)
타임스탬프

Unix 타임스탬프는 무엇인가요?

Unix 타임스탬프는 1970년 1월 1일 (UTC/GMT 자정)부터 현재까지 경과한 초를 말합니다. 윤초를 고려하지 않습니다.

인간이 읽을 수 있는 시간초(s)
1 시간3600 초
1 일86400 초
1 주604800 초
1 개월 (30.44 일)2629743 초
1 년 (365.24 일)31556926 초

2038년 1월 19일에 무슨 일이 발생할까요?

32비트 오버플로우 때문에 그 날 Unix 타임스탬프가 작동을 멈출 것입니다. 그 날 이전에 수백만 개의 응용 프로그램이 새로운 타임스탬프 약속을 채택하거나 64비트 시스템으로 이동해야 합니다. 이러한 시스템은 타임스탬프를 '조금 더' 구매할 수 있습니다.

다른 프로그래밍 언어에서 Unix 타임스탬프 얻기

언어코드
JavaScript
Math.round(new Date() / 1000)
Python
import time time.time()
Ruby
Time.now.to_i
Go
import ('time') int64(time.Now().Unix())
Java(pure)
System.currentTimeMillis() / 1000
Java(joda)
DateTime.now().getMillis() / 1000
Java >= 8
Instant.now().getEpochSecond()
Swift
Date().timeIntervalSince1970
C
#include <sys/time.h> struct timeval tv; gettimeofday(&tv, NULL);
Objective-C
[[NSDate date] timeIntervalSince1970]
MySQL
SELECT unix_timestamp(now())
SQLite
SELECT strftime('%s', 'now')
PHP
<?php pure php time();
Erlang
calendar:datetime_to_gregorian_seconds(calendar:universal_time())-719528*24*3600.
Shell
date +%s
Groovy
(new Date().time / 1000).longValue()
Lua
os.time()
.NET/C#
DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Dart
(new DateTime.now().millisecondsSinceEpoch / 1000).truncate()