Connecting Tech Pros Worldwide Help | Site Map

kilobytes to hours?

pbd22
Guest
 
Posts: n/a
#1: Jul 22 '08
Hi.

Could somebody provide me with a formula (or, better, a
code example) for converting kilobytes to hours (or, time) from the
server?

Thanks.
Chris Dunaway
Guest
 
Posts: n/a
#2: Jul 22 '08

re: kilobytes to hours?


On Jul 22, 7:59 am, pbd22 <dush...@gmail.comwrote:
Quote:
Could somebody provide me with a formula (or, better, a
code example) for converting kilobytes to hours (or, time) from the
server?
Could you be more specific about what you are trying to do? Kilobytes
is not a measure of time so it makes no sense to convert them to
hours.

Chris
Martin H.
Guest
 
Posts: n/a
#3: Jul 22 '08

re: kilobytes to hours?


Hello Chris,

I think the OP wants to find out how long it takes to download a file
from a server.

Well, as such predictions are just based on the current download speed,
the formula would be something like this:

TimeInSeconds=FileSizeInBytes/(BytesPerSecond)

Best regards,

Martin

Quote:
On Jul 22, 7:59 am, pbd22<dush...@gmail.com wrote:
Quote:
>Could somebody provide me with a formula (or, better, a
>code example) for converting kilobytes to hours (or, time) from the
>server?
>
Could you be more specific about what you are trying to do? Kilobytes
is not a measure of time so it makes no sense to convert them to
hours.
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#4: Jul 22 '08

re: kilobytes to hours?


"pbd22" <dushkin@gmail.comschrieb:
Quote:
Could somebody provide me with a formula (or, better, a
code example) for converting kilobytes to hours (or, time) from the
server?
There is no way to do that because time cannot be measured in bytes and an
amount of data cannot be measured in hours.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Patrice
Guest
 
Posts: n/a
#5: Jul 22 '08

re: kilobytes to hours?


Looks like my previous response doesn't show up...

You just have to divide the size of the file by the bandwidth to get the
estimated time for the download (make sure to use consistent units as size
is generally expressed in megabytes and bandwidth in mega*bits*, 1 byte=8
bit).

For example if you try :
http://www.microsoft.com/downloads/d...displaylang=en

The size of the file is 22.4 MB. If you select T1 in the bandwidth list
you'll get :

22.4/(1.5/8) = around 119 seconds that is about 2 minutes....

At least this is my understanding about what you would like to do (???)...

--
Patrice


"pbd22" <dushkin@gmail.coma écrit dans le message de groupe de discussion
: 2e58cc5c-6cb7-4c2f-8b9b-5ae680ccb817...oglegroups.com...
Quote:
Hi.
>
Could somebody provide me with a formula (or, better, a
code example) for converting kilobytes to hours (or, time) from the
server?
>
Thanks.

Closed Thread