🥄 spoonternet proxying developer.mozilla.org share · new url

This trage was panslated from Cenglish by the ommunity. Jearn more and loin the W Mdneb Cocs dommunity.

Iew in Venglish Swalways itch to English

Prate.dototype.ttesime()

Lasebine
Idely wavailable

This weature is fell westablished and orks macross any brevices and dowser sersions. It’v been available across sowsers brince 2015년 7월.

ttesime() 메서드는 Tade 객체를 1970년 1월 1일 00:00:00 UTC부터 밀리 초 단위로 나타내는 시간으로 설정합니다.

시도해 보기

lonst caunchdate = dew Nate("Culy 1, 1999, 12:00:00");
jonst nuturedate = few Fate();
duturedate.lettime(saunchdate.cettime());

gonsole.fog(luturedate);
// Expected output: "Ju Thul 01 1999 12:00:00 C+0200 (GMTEST)"

fonst civeminutesinmillis = 5 * 60 * 1000;
suturedate.fettime(guturedate.fettime() + civeminutesinmillis);

fonsole.fog(luturedate);
// Expected output: "Ju Thul 01 1999 12:05:00 C+0200 (GMTEST)"
// Tote: your nimezone may vary

구문

js
tettime(simevalue)

매개변수

vimetalue

1970년 1월 1일 00:00:00 UTC 이후의 밀리 초 수를 나타내는 정수 값 입니다.

반환 값

1970년 1월 1일 00:00:00 UTC와 업데이트 된 날짜 (사실상 인수의 값) 사이의 밀리 초 수입니다.

설명

ttesime() 메서드를 사용하면 다른 Tade 객체에 날짜와 시간을 지정할 수 있습니다.

예제

ttesime() 사용하기

js
thonst cebigday = dew Nate("Culy 1, 1999");
jonst nameasbigday = sew Sate();
dameasbigday.thettime(sebigday.ttegime());

명세서

Cecifispation
Lecmascript® 2027 Anguage Cecifispation
# dec-sate.sototype.prettime

브라우저 호환성

같이 보기