[0630]

IT/TIL(Today I Learnt)|2022. 7. 1. 09:32

Today I Learnt 

0630:

 

요즘 들어 offical doc만 잘 읽어도 이렇게 삽질할 필요 없을 텐데..라고 생각을 많이 한다..

 

 

 

https://momentjs.com/docs/

 

Moment.js | Docs

moment.relativeTimeThreshold(unit); // getter moment.relativeTimeThreshold(unit, limit); // setter duration.humanize has thresholds which define when a unit is considered a minute, an hour and so on. For example, by default more than 45 seconds is consider

momentjs.com

date format 

function getKoreanTime() {
    const now = new Date(); // 현재 시간
    const utcNow = now.getTime() + (now.getTimezoneOffset() * 60 * 1000); // 현재 시간을 utc로 변환한 밀리세컨드값
    const koreaTimeDiff = 9 * 60 * 60 * 1000; // 한국 시간은 UTC보다 9시간 빠름(9시간의 밀리세컨드 표현)
    const koreaNow = new Date(utcNow + koreaTimeDiff); // utc로 변환된 값을 한국 시간으로 변환시키기 위해 9시간(밀리세컨드)를 더함

    console.log(koreaNow)
    console.log(typeof (koreaNow))
    const dateString = moment(koreaNow).format("YYYY-MM-DD");
    console.log(dateString)
    console.log(typeof (dateString))

}

 

mongodb data range

 

https://webisfree.com/2020-09-10/mongodb-%EB%82%A0%EC%A7%9C-%EC%BF%BC%EB%A6%AC%EB%AC%B8-gte-%ED%81%AC%EA%B1%B0%EB%82%98-%EC%9E%91%EC%9D%80-%EA%B0%92

 

MongoDB 날짜 쿼리문 gte, 크거나 작은 값

MongoDB에서 날짜 값을 기준으로 크거나 작은 값으로 쿼리문을 작성하는 방법을 알아봅니다.

webisfree.com

 

 

 

바이낸스 면접 :

 

일단 1차 면접은 별거 없었고 만약 통과하면 -> 팀 리더 -> 백앤드 리더 -> 과제 -> CTO면접 

 

반응형

'IT > TIL(Today I Learnt)' 카테고리의 다른 글

[TIL] 0707 코로나  (2) 2022.07.08
[TIL] 0706. Resume  (1) 2022.07.06
[TIL] 0627  (0) 2022.06.29
[TIL] 0623  (2) 2022.06.24
[TIL] 0620  (3) 2022.06.21

댓글()