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
-4
votes
1 answer

Get Duration by subtracting the current date from end date in HTML

I am trying to create an HTML code (with minimum code length) to obtain the duration or days left for the project to go live. So if I have end date of the project; I want the HTML code to subtract the current date from the end date and give the…
-4
votes
1 answer

Java Duration-like class for length?

In Java, there are the Duration and Period classes for spans of time. Is there an equivalent class for length/distance?
Tad
  • 597
  • 5
  • 10
-5
votes
1 answer

PHP - Duration between remaining hours

I am able to get the time difference between two times of the day. But I need part them. If somebody has crossed 8 hours time, the extra time he remains on the site will be added otherwise. I calculated the time difference using my…
Adwitya Media
  • 65
  • 1
  • 6
-5
votes
4 answers

SimpleDateFormat returns wrong number of days

I need to get the number days, hours, minutes, seconds from a long value. But I am getting wrong number of days from a following code. public static String formatTimeUTC(long value, String pattern) { final SimpleDateFormat format = new…
Gunaseelan
  • 14,415
  • 11
  • 80
  • 128
-8
votes
1 answer

I'm trying to read a video duration from file, but it give just zeros. Help me

this code snippet doesn't work using WMPLib; class Program { static void Main(string[] args) { // this file is called Interop.WMPLib.dll WindowsMediaPlayer wmp = new WindowsMediaPlayer(); wmp.URL =…
dastanko
  • 125
  • 1
  • 10
-8
votes
4 answers

JQuery change border color for 10 seconds

How can I change border color of the clicked for 10 seconds and then change back to original?
Üh Lieh
  • 35
  • 2
  • 6
1 2 3
95
96