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

seconds to minutes - ministep88 - 博客园 #104

Open
kemistep opened this issue Nov 22, 2021 · 0 comments
Open

seconds to minutes - ministep88 - 博客园 #104

kemistep opened this issue Nov 22, 2021 · 0 comments

Comments

@kemistep
Copy link
Contributor

How to convert seconds to minutes and hours in javascript - Stack Overflow

   secondTransferTime: function(t) {
        return t > 3600 ? [ parseInt(t / 60 / 60), parseInt(t / 60 % 60), parseInt(t % 60) ].join(":").replace(/\b(\d)\b/g, "0$1") : [ parseInt(t / 60 % 60), parseInt(t % 60) ].join(":").replace(/\b(\d)\b/g, "0$1");
    },

https://www.cnblogs.com/ministep/p/15586227.html

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

No branches or pull requests

1 participant