[jawsscripts] Re: Time format function.
- From: "Dennis Brown" <DennisTBrown@xxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 10:57:24 -0500
Hi,
Save the time to a string named sTime, then process it this way:
let iSegmentCount=StringSegmentCount(sTime,":")
Now iSegmentCount contains the number of string segments, using the colon as
the delimiter.
If iSegmentCount is 0, there are no colons.
If iSegmentCount is 2, then there is only a single colon.
If iSegmentCount is 3, then there are 2 colons.
If you want to strip the fraction of seconds from the string, use
let sTime=StringSegment(sTime,".",1)
Then sTime will contain only the string to the left of the decimal point.
Hope this helps!
Thanks,
Dennis Brown
----- Original Message -----
From: "Jeet" <LoveForAll@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, December 29, 2007 12:59 AM
Subject: [jawsscripts] Time format function.
Hello friends, In an audio application, I find the folowing trouble:
the time info is provided this way, and I am in need to write a script to
interprate it correctly.
For example: if a five minute's file is open, info is:
5:00.0 only a single colon sign can prove it,
1:5:00.0
the zero after a point sign is a fraction of a second.
You'd need to check for colons in the time. If there are no colons,
then the time in seconds and fractions of a second after the decimal.
If there is one colon, then it is minutes, seconds, and fraction. If
there are two colons, then it is hours, minutes, seconds, and fraction.
I need to write a function that I call via one scripts and anounce it
properly.
Please help me please!
Thank you.
--
Contact:
Direct-cell: +919213153776
Skype:
Jeet.delhi
"The Scourge Of Authoritarianism Is Intellectualism."
----------------------------------------------------------------------
Get a free email account with anti spam protection.
http://www.bluebottle.com/tag/2
__________
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
__________
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
- Follow-Ups:
- [jawsscripts] Re: Time format function.
- From: Jeet
- References:
- [jawsscripts] Time format function.
- From: Jeet
Other related posts:
- » [jawsscripts] Time format function.
- » [jawsscripts] Re: Time format function.
- » [jawsscripts] Re: Time format function.
- » [jawsscripts] Re: Time format function.
- » [jawsscripts] Re: Time format function.
- » [jawsscripts] Re: Time format function.
- » [jawsscripts] Re: Time format function.
Hello friends, In an audio application, I find the folowing trouble:the time info is provided this way, and I am in need to write a script to interprate it correctly.
For example: if a five minute's file is open, info is: 5:00.0 only a single colon sign can prove it, 1:5:00.0 the zero after a point sign is a fraction of a second. You'd need to check for colons in the time. If there are no colons, then the time in seconds and fractions of a second after the decimal. If there is one colon, then it is minutes, seconds, and fraction. If there are two colons, then it is hours, minutes, seconds, and fraction.I need to write a function that I call via one scripts and anounce it properly.
Please help me please! Thank you. -- Contact: Direct-cell: +919213153776 Skype: Jeet.delhi "The Scourge Of Authoritarianism Is Intellectualism." ---------------------------------------------------------------------- Get a free email account with anti spam protection. http://www.bluebottle.com/tag/2 __________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts
- [jawsscripts] Re: Time format function.
- From: Jeet
- [jawsscripts] Time format function.
- From: Jeet