Questions tagged [duration]

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

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

See also the and tags.

1431 questions
-2
votes
2 answers

Algorithm for calculating duration between Night-Morning

I'm stuck in a Duration calculation problem given in my College Assignment. So, the user get to enter a Starting time and an Ending time, where hours and minutes are entered separately to the program. Hours are entered in 24h format(00 - 23). My…
-2
votes
4 answers

How to calculate user entered time in JAVA

Hey guys i need help to figure out how to calculate the time difference between two certain times (entered by user). But the output has to be split up in hours, minutes and seconds as their own variables. example: Startingtime: Hour: 15 Minute:…
Pudo
  • 1
  • 2
-2
votes
1 answer

How to give a beep sound at 45 sec

How to create an Android app to give a beep sound before approaching the 1 min mark (Say at 45 sec, just a beep to let the user knowing, 15 sec before it passes a min)?
-3
votes
3 answers

Golang fmt.Println timer

How can I use fmt.Println only every 5 min h := fmt.Sprintf("%x", word) fmt.Println(h) I need something like this: if time := 5 min then fmt.Println(h) just to show (n) only every 5 min not every line EDIT: Obviously I haven't asked the correct…
Mad
  • 101
  • 1
  • 6
-3
votes
2 answers

Calculate end date with java.time.Duration (ISO 8601) as input?

I have duration parsed and ready, Duration is of type java.time.Duration with this as input I have tried to calculate end datetime by adding LocalDateTime.now() with duration (java.time.duration). But haven't got appropriate results Was able to see…
-3
votes
1 answer

Displaying duration inside input tag rather than pre tag

I am trying to display video duration and I took reference from this answer Get video duration when input a video file given by Kaiido. Here is the code: