duration

Sound duration in Flex

Hi, I noticed many players display audio track duration before loading the sound file, but I cannot figure out how that is done. So how can I get the duration of an mp3 file in Flex without having to load the file in a Sound object ? Think about loading 1000+ files in an application that has to immediately display the duration for each ...

Login, logout and duration time in php and mysql?

I would like to store the login, logout and duration time in database. The login time is created when the user is authenticated(successfully logged in) The logout time is created when the user clicks the logout button The duration is logout - login time. (logout minus login) But the problem is, what if the user didnt click the logo...

C# WMPLib Duration of a mp3

Hello! Im using WMPLib to make an easy mp3player in C#. Im almost done but theres one more thing I want to do. I Would like to how far gone the song is and also, how much is left of the song. using for example the progressbar. thanks Adam ...

The API Joda-Time(java) doesnt respect the ISO 8601: bug or feature ?

Hi, According to their website, the class DUration implements the ISO 8601 http://en.wikipedia.org/wiki/ISO%5F8601#Durations But let see an example. It is a duration of 14min & 51sec. In ISO 8601 those code are equivalent : PT14M51S PT891S System.out.println("bug "+new Duration("PT14M51S")); System.out.println("NO bug "+new...

YouTube Player API: How to get duration of a loaded/cued video without playing it?

Hi, I'm not able to get the correct video duration/length (in seconds) of a loaded/cued video via the getDuration() method of the YouTube Player API; the same method, however, returns a valid value once the video starts playing! Wondering how YouTube is able to show the valid duration of a loaded/cued video. When I load this HTML page ...

Saving duration info to SQL Server

I have a WPF app, where one of the fields has a numeric input box for length of a phone call, called ActivityDuration. Previously this has been saved as an Integer value that respresents minutes. However, the client now wishes to record meetings using the same table, but meetings can last for 4-5 hours so entering 240 minutes doesn't se...

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 values are: 2h 30m 72h 15m 6h 0h However I am having limited success with this. Can some one please suggest how this can be accomplished? I am OK if this result can be achieved using a JTextField as well. Thanks! If it is w...

Compare the duration of dates with selected dropdown value...read please

Hi I have the Drop down with values as "One year ", "Two year",...etc.. Ok? also i have two ajax textbox with calender extender . I want to popup alert message if dropdown selected value is "One year" and duration between the both textbox value Means dates not matches. getting what i mean ? please help me. ...

date difference and match with value in javascript

Hi I have the Drop down with values as "One year ", "Two year",...etc.. Ok? also i have two ajax textbox with calender extender . I want to popup alert message if dropdown selected value is "One year" and duration between the both textbox value Means dates not matches. getting what i mean ? please help me. How can i get this scenario in ...

php date list for specified duration

hi is there any php classes or functions, which will gives us all the days from specific duration? for example, if i want a list of dates from 25/03/2010 (25th march 2010) to 15/05/2010 (15th May 2010), it will give me: 25/03/2010 26/03/2010 26/03/2010 .... .... .... 14/05/2010 15/05/2010 thanks a lot for any help! ...

find out the connected wifi duration,upload and download speed using andorid 1.5api?

Hi, In my application,need to display the upload and download speed and duration of the connected network(wifi).I searched in api found only one method wifiinfo.getLinkSpeed() and a field LINK_SPEED_UNITS.Please give me guidance or sample code. Regards, Rajendar ...

Problem inserting android.text.format.Time.toMillis value into SQLite DB on droid

I'm writing an app for Android OS, and I need to store some time values in the SQLite DB. I have been using android.text.format.Time to store the time values in the app, and then inserting the values as millis into the DB as REAL values. On the SDK emulator, everything works perfectly. On the sole phone I've had the opportunity to test m...

how to convert minutes to days,hours,minutes

hi how to convert minutes into days hours and minutes in java ( we have a week here , 7 days ) public String timeConvert(int time){ String t = ""; int h = 00; int m = 00; // h= (int) (time / 60); // m = (int) (time % 60); // if(h>=24) h=00; if((time>=0) && (time<=24*60)){ h= (int) (time / 60); m = (in...

Parsing an xs:duration datatype into a Python datetime.timedelta object?

As per the title, I'm trying to parse an XML file containing an xs:duration data type. I'd like to convert that into a Python timedelta object, which I can then use in further calculations. Is there any built-in way of doing this, similar to the strptime() function? If not, what is the best way to achieve this? ...

How can i use a duration setting on .animate if it is inside the callback from a .fadeOut effect?

I am trying to just fade the content of section#secondary out and once the content has been faded out, the parent (section#secondary) should animate 'shut' in a slider animation. All this is working however the durations are not and I cannot figure out why. Here is my code: HTML <section id="secondary"> <a href="#" class="slide_b...

How to map Duration type with JPA

I have a property field in a class that is of type javax.xml.datatype.Duration. It basically represents a time span (e.g. 4 hours and 34 minutes). JPA is telling me it is an invalid type, which doesn't shock me. Whats a good solution this? I could implement my own Duration class, but I don't know how to get JPA to "accept" it as a ...

ASP.NET @OuputCache Directive "Inheritance"

Hi to all, As I mention in an earlier question, I am having trouble with the performance of a web site... Some SQL queries are killing the server. But, as the title of this post mention, I looked at the OutputCache page directive to improve performance of the site. Although, I came across some questions regarding this directive: 1- If ...

Localized Duration as NSString. (Cocoa)

Hi, I know if want to display a date, that Objective-C has methods to convert the date as a string to the current locale settings. Is there an equivalent for durations? I mean something like 00:12:34 (0 hours, 12 minutes and 34 seconds) in different locales? ...

android get duration from maps.google.com directions

At the moment I am using this code to inquire google maps for directions from an address to another one, then I simply draw it on a mapview from its GeometryCollection. But yet this isn't enough I need also to extract the total expected duration from the kml. can someone give a little sample code to help me? thanks StringBuilder urlStr...

Perl module for parsing natural language time duration specifications (similar to the "at" command)?

I'm writing a perl script that takes a "duration" option, and I'd like to be able to specify this duration in a fairly flexible manner, as opposed to only taking a single unit (e.g. number of seconds). The UNIX at command implements this kind of behavior, by allowing specifications such as "now + 3 hours + 2 days". For my program, the "n...