Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Last.fm API,但我坚持了一些看似相当简单的事情。
响应之一是持续时间。返回为:
222000
但是我如何格式化(在 PHP 中)这个看起来像
MIN:SEC 3:42
看起来持续时间以毫秒为单位。只需除以 1000 即可得到秒数。