유성 서버를 실행 중일 때 새로운 날짜를 기록하여 그 정보를 확인합니다.로컬로 실행중인 서버에서 UTC 시간을 사용합니다.
I20160623-10:07:22.747(-4)? Current time: 2016-06-23T10:07:22-04:00
I20160623-10:07:22.748(-4)? Offset from UTC: -240
이 방법은 UTC 시간에서 실행되는 것처럼 내 서버가 실행 얻을 거기 :
import moment from 'moment';
Meteor.startup(function() {
const now = moment();
console.log('Current time:\t', now.format());
console.log('Offset from UTC:\t', now.utcOffset());
});
이
다음과 같은 기록?
분명히 '순간'은 실제로 [momentjs]입니까 (http://momentjs.com/)? –
옙, 그렇습니다. 그리고 주석 제한을 넘길 때까지 글자를 써야합니다. – corvid