Skip to content

Commit 23af784

Browse files
committed
data-types/date 1번 예제 충돌 해결
1 parent 71ab899 commit 23af784

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

1-js/05-data-types/11-date/1-new-date/solution.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,18 @@
22

33
따라서 2월은 숫자 1을 사용해 만듭니다.
44

5-
Here's an example with numbers as date components:
6-
7-
Here's an example with numbers as date components:
5+
숫자를 날짜의 컴포넌트로 사용하는 예제는 다음과 같습니다.
86

97
```js run
108
//new Date(year, month, date, hour, minute, second, millisecond)
119
let d1 = new Date(2012, 1, 20, 3, 12);
1210
alert( d1 );
1311
```
14-
We could also create a date from a string, like this:
12+
13+
문자열로도 다음과 같이 날짜를 만들 수 있습니다.
1514

1615
```js run
1716
//new Date(datastring)
18-
<<<<<<< HEAD
19-
let d2 = new Date("February 20, 2012 03:12:00");
20-
=======
2117
let d2 = new Date("2012-02-20T03:12");
22-
>>>>>>> upstream/master
2318
alert( d2 );
2419
```

0 commit comments

Comments
 (0)