Baseline Widely available
setSeconds()
ë©ìëë íì§ ìê°ì ë°ë¼ ì§ì ë ë ì§ì ì´ë¥¼ ì¤ì í©ëë¤.
const event = new Date("August 19, 1975 23:15:30");
event.setSeconds(42);
console.log(event.getSeconds());
// Expected output: 42
console.log(event);
// Expected output: "Sat Apr 19 1975 23:15:42 GMT+0100 (CET)"
// Note: your timezone may vary
구문
setSeconds(secondsValue)
setSeconds(secondsValue, msValue)
매ê°ë³ì
secondsValue
ì´ë¥¼ ëíë´ë 0ìì 59 ì¬ì´ì ì ìì ëë¤.
msValue
Optional
ì í 과목. ë°ë¦¬ ì´ë¥¼ ëíë´ë 0ìì 999 ì¬ì´ì ì«ìì ëë¤.
1970ë 1ì 1ì¼ 00:00:00 UTCì ì ë°ì´í¸ ë ë ì§ ì¬ì´ì ë°ë¦¬ ì´ ì«ìì ëë¤.
ì¤ëªmsValue
ë§¤ê° ë³ì를 ì§ì íì§ ìì¼ë©´ getMilliseconds()
ë©ìëìì ë°íë ê°ì´ ì¬ì©ë©ëë¤.
ì§ì í ë§¤ê° ë³ìê° ìì ë²ì를 ë²ì´ëë©´ setSeconds()
ë Date
ê°ì²´ì ë ì§ ì 보를 ì
ë°ì´í¸íë ¤ê³ ìëí©ëë¤. ì를 ë¤ì´, secondsValue
ì 100ì ì¬ì©íë©´ Date
ê°ì²´ì ì ì¥ë ë¶ ê°ì´ 1 ì¦ê°íê³ ì´ ê°ì 40ì´ ë©ëë¤.
setSeconds()
ì¬ì©í기
var theBigDay = new Date();
theBigDay.setSeconds(30);
ëª
ì¸ ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4