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

2023/08/15/dayjs-duration/ #16

Open
utterances-bot opened this issue Jun 11, 2024 · 1 comment
Open

2023/08/15/dayjs-duration/ #16

utterances-bot opened this issue Jun 11, 2024 · 1 comment

Comments

@utterances-bot
Copy link

Dayjs Duration: 시간 간격 다루기 | CodeNexus

Dayjs Duration: 시간 간격 다루기

https://umanking.github.io/2023/08/15/dayjs-duration/

Copy link

echoja commented Jun 11, 2024

const currentTime = dayjs();
const futureTime = currentTime.add(dayjs.duration({ hours: 2, minutes: 30 }));

이 코드랑

const currentTime = dayjs();
const futureTime = currentTime.add(2, "hours").add(30, "minutes");

이 코드랑 다른 점이 무엇인가요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants