Jump to content
Sign in to follow this  
longxx

changing time variable format

Recommended Posts

longxx

hi all, I have a GUI window shows certain time variable,

but it is shown as 3434542.3425345

what is a good/short way to change this number to like 1 or 2 decimal places, and divide it by 1000? or even show it in XX mins XX seconds format?

thanks

Share this post


Link to post
Share on other sites
Airwolf

hi all, I have a GUI window shows certain time variable,

but it is shown as 3434542.3425345

what is a good/short way to change this number to like 1 or 2 decimal places, and divide it by 1000? or even show it in XX mins XX seconds format?

thanks

This will round it to 2 decimal places and divide by 1000.

$number = "3434542.3425345"
$divided = (Round($number,2) / 1000)oÝ÷ Ù8b³
.Ø"½ì¨ºØ^rêëz{f{­y©Ý±ç(Ö®¶­sb4æ6ÇVFRfÇC´FFRæS2fwC° ¤×6t&÷ÂgV÷C²gV÷C²Å7G&æu&vBôæ÷uFÖRRÃR

Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.