Skip to Content
러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발
book

러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발

by 한선용, 이선 브라운
July 2017
Beginner to intermediate
464 pages
10h 38m
Korean
Hanbit Media, Inc.
Content preview from 러닝 자바스크립트: ES6로 제대로 입문하는 모던 자바스크립트 웹 개발
320
러닝 자바스크립트
new
Date
(-
365
*
24
*
60
*
60
*
1000
); //
12
:
00
A
.
M
.,
Jan
1
,
1969
UTC
// 날짜 문자열 해석 (표준시를 기준으로 합니다.)
new
Date
('
June
14
,
1903
'); //
12
:
00
A
.
M
.,
Jun
14
,
1903
지역 표준시
new
Date
('
June
14
,
1903
GMT
-
0000
'); //
12
:
00
A
.
M
.,
Jun
14
,
1903
UTC
앞의 예제를 테스트해보면 결과가 항상 현재 지역의 표준시에 따라 나온다는 사실을 알게 될
겁니다. 리스본이나 그리니치 등
UTC
지역에 살지 않는 한, 예제에서
UTC
로 표기한 시각은
독자의 콘솔에 표시되는 내용과 다를 겁니다. 이것이 자바스크립트
Date
객체의 가장 큰 문제
중 하나입니다. 타임존을 명시할 방법이 없습니다.
Date
객체는 항상 내부적으로는
UTC
기준
으로 저장하고, 출력할 때 운영체제에서 정의한 표준시에 맞게 변환합니다. 자바스크립트는 원
래 브라우저 기반 스크립트 언어이니 어쩌면 이렇게 하는 편이 올바른 일이었을 겁니다. 웹페
이지에서 날짜 관련 데이터를 표시한다면 사용자의 타임존에 맞게 표시하는 편이 나을 테니까
요. 하지만 인터넷은 전 세계 어디에서든 쓰이고, 노드가 자바스크립트를 서버로 가져감에 따
라 타임존을 더 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

웹 애플리케이션 보안: 정찰, 공격, 방어 세 단계로 배우는 웹 애플리케이션 보안의 모든 것

웹 애플리케이션 보안: 정찰, 공격, 방어 세 단계로 배우는 웹 애플리케이션 보안의 모든 것

최용, 앤드루 호프먼

Publisher Resources

ISBN: 9788968483387