Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#70 feat create before days function #75

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

HOOOO98
Copy link
Contributor

@HOOOO98 HOOOO98 commented Jan 11, 2024

개요

n초전, n분전, n시간전 n일전, yy.mm.dd 변환 함수 적용

스크린샷

스크린샷 2024-01-11 오후 11 09 31

주요 내용

  • 포맷 유틸 함수 적용

close #70

@HOOOO98 HOOOO98 added the feat label Jan 11, 2024
@HOOOO98 HOOOO98 added this to the TripVote FE development milestone Jan 11, 2024
@HOOOO98 HOOOO98 self-assigned this Jan 11, 2024
@HOOOO98 HOOOO98 linked an issue Jan 11, 2024 that may be closed by this pull request
1 task
Copy link

vercel bot commented Jan 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
trip-vote ✅ Ready (Inspect) Visit Preview Jan 11, 2024 2:14pm

Comment on lines +11 to +14
const secondsAgo = differenceInSeconds(now, date);
const minutesAgo = differenceInMinutes(now, date);
const hoursAgo = differenceInHours(now, date);
const daysAgo = differenceInDays(now, date);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

date-fns 함수 사용하셨네요! 이거 진짜 편하고 좋더라고요👍🏻

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그러게요ㅎㅎ 자바스크립트에서 날짜 다루기 너무 힘들었는데 편하게 작업했습니다!👍

@HOOOO98 HOOOO98 merged commit 24a4136 into dev Jan 12, 2024
3 checks passed
@HOOOO98 HOOOO98 deleted the 70-feat-create-before-days-function branch January 12, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

Feat: create before days function
5 participants