[英]Last.fm API - Track Duration
I'm using the Last.fm API and I stuck on something seemingly fairly simple. 我正在使用Last.fm API而且我坚持看似相当简单的事情。
One of the responses is the duration. 其中一个答案是持续时间。 Which is returned as: 哪个返回为:
222000
But how do I format (in PHP) this to look like 但是我如何格式化(在PHP中)这样看起来像
MIN:SEC 3:42
It looks like the duration is in milliseconds. 看起来持续时间以毫秒为单位。 Just divide by 1000 to get the number of seconds. 只需除以1000即可获得秒数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.