Timestamp converter
Entering a timestamp will be converted to a date. Entering a date will be converted to a timestamp. Entering a blank will print the current time and timestamp. Only UTC+0 time zone is supported.
타임스탬프를 입력하면 날짜로 변환됩니다. 날짜를 입력하면 시간으로 변환됩니다. 빈칸을 입력하면 현재 시간과 타임스탬프가 출력됩니다. UTC+0 타임존만 지원됩니다.
[Format] YYYY-MM-DD hh:mm:ss
(X) 2017-7-17 13:50:0 → Wrong
(O) 2017-07-17 13:50:00 → 1500299400
(O) 2017-07-17T13:50:00.000Z → 1500299400
(O) 1500299400 → 2017-07-17T13:50:00.000Z
(O) 1500299400000 → 2017-07-17T13:50:00.000Z

Date(UTC+0):
Timestamp(sec):
Timestamp(mil):
curl -G -d "api=Insert your API key here" --data-urlencode "dateOrStamp=1500299400000"
API
cURL
# -*- coding: utf-8 -*-
from http.client import HTTPSConnection
from json import loads
from urllib import parse
dateOrStamp = "1500299400000"
dateOrStamp = parse.quote(dateOrStamp)
api = "Insert your API key here"
param = "?api=" + api + "&dateOrStamp=" + dateOrStamp
conn = HTTPSConnection("501v32.com")
conn.request("GET", "/_functions/timestampConverter" + param)
rspStr = conn.getresponse().read().decode()
rspDic = loads(rspStr)
print( rspDic["dateUTC0"] )
print( rspDic["stampSec"] )
print( rspDic["stampMil"] )
API
Python 3
API
Javascript
async function timestampConverter(){
let dateOrStamp = "1500299400000";
let api = "Insert your API key here";
let url = "https://501v32.com/_functions/timestampConverter?api=" + api + "&dateOrStamp=" + dateOrStamp;
let rspDic = await (await fetch(url)).json();
console.log( rspDic["dateUTC0"] );
console.log( rspDic["stampSec"] );
console.log( rspDic["stampMil"] );
} timestampConverter();