Top "Duration" questions

The measure of continuance of any object or event within time.

How to convert string duration to ISO 8601 duration format? (e.g. "30 minutes" to "PT30M")

There are plenty of questions asking how to do this the other way (converting from this format), but I can't …

php duration iso8601 dateinterval
How to get video duration in seconds?

How can I get video duration in seconds? what I've tried: ffmpeg -i file.flv 2>&1 | grep "Duration" Duration: 00:39:43.08, …

time awk ffmpeg duration
HTML5 Audio Player Duration Showing Nan

I just started to learn HTML5 and was going through HTML5 Audio player using JQuery. I coded a player with …

html5-audio nan duration
What is the best way to get an audio file duration in Android?

I'm using a SoundPool to play audio clips in my app. All is fine but I need to know when …

android audio media-player duration soundpool
Duration.ofDays generates UnsupportedTemporalTypeException

I am trying to learn the new Date & Time API. My code is working except for the last line: …

java duration java-time
Golang parse time.Duration

I would like to parse time.Duration. The duration is "PT15M" (string/bytes) and would like to convert it …

parsing time go duration iso8601
Using a duration field in a Rails model

I'm looking for the best way to use a duration field in a Rails model. I would like the format …

ruby-on-rails ruby time duration
Converting Java to Scala durations

Is there an elegant way to convert java.time.Duration to scala.concurrent.duration.FiniteDuration? I am trying to do …

scala config duration scala-java-interop
JFormattedTextField : input time duration value

I want to use a JFormattedTextField to allow the user to input time duration values into a form. Sample valid …

java time jtextfield duration jformattedtextfield
Scala FiniteDuration from String

Is it possible to parse a String into a FiniteDuration in Scala without writing custom code? There is a method …

scala duration