[jawsscripts] howTo translate numeric timer into speaking mins and secs?

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Fri, 23 Jul 2010 14:02:34 +1000

Mighty scripters. would any kind soul feel so able/inclined today, to assist me 
ever so greatly, by either perhaps providing some actual code, or pointers,
 with which I might be able to process a colon delimited numeric string, into 
more friendly speaking of seconds, or minutes and seconds respectively?
as in, 
x seconds. or x minutes x seconds? 

the timer string always has a minimum of 4 digits delimited by a colon, as in
2 digits, then colon, then another 2 digits, even when seconds only, like this:

00:40

means it's been onHold for 40 seconds etc.

It does do hours as well, as I have here on my test system, <grin,> but I 
severely doubt I have to cover that, as noone's gunna hang around onn Hold in a 
business for xx hours, x minutes and x seconds eh.
<smile.>

However, I'd love it also for the output to be intelligent enough not to 
announce 0 minutes x seconds, when there was only 0 in the minutes column?

Would anyone feel like they could assist with this one today? or, if not time, 
point me in dirrection of how I might begin to tackle the problem? 


no builtins I guess to already handle this? it must be a common enough 
occurrance/desire I'd have thought?

my sincerest thanks for any tips/guidance.

 Geoff c.



__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: