473,320 Members | 1,947 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

kilobytes to hours?

Hi.

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

Thanks.
Jul 22 '08 #1
4 1245
On Jul 22, 7:59 am, pbd22 <dush...@gmail.comwrote:
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
Jul 22 '08 #2
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

On Jul 22, 7:59 am, pbd22<dush...@gmail.com wrote:
>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.
Jul 22 '08 #3
"pbd22" <du*****@gmail.comschrieb:
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/>

Jul 22 '08 #4
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" <du*****@gmail.coma écrit dans le message de groupe de discussion
: 2e**********************************...oglegroups.com...
Hi.

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

Thanks.

Jul 22 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: anon | last post by:
Does anyone know how many man-hours were used in creating .NET 1.0? I thought it would be an interesting statistic to know. Thanks.
1
by: Daniel | last post by:
in C# how do i get to total number of kilobytes of memroy total and available for the current machine?
5
by: Rebecca Smith | last post by:
I'm building log book to keep track of a racers stats during a long ultra marathon race. Things such as time on the bike, time off, H20 intake, electrolytes and the like. When I say long I mean...
1
by: serge | last post by:
Right now the database I am working with is storing time in an Integer data type and is storing the time value in seconds. The application does not allow entering seconds. It accepts minutes and...
22
by: Drum2001 | last post by:
I have a table that tracks employee times. I have a column (Date/Time). Users, through a form, enter how long it takes them to complete a task. For example, 03:45 = 3 hours and 45 mins. I am...
6
by: richbneal | last post by:
I really like the site so far and this is my first post. I have looked through some of the archives with no luck. I have also read the posting guidelines and will do my best to be clear and accurate...
3
by: sentiald | last post by:
I am having trouble with the following code. I need to have it calculate regular pay, overtime pay and gross pay and display it back to the user. Can anyone figure out where my problem lies. <?php...
1
by: 22dude | last post by:
it says the variable hours is being used with out being initializes i am using C++ 2005 express edition , I am currently student Please help me out to find the solution on my code below #...
2
by: pbd22 | last post by:
Hi. Could somebody provide me with a formula (or, better, a code example) for converting kilobytes to hours (or, time) from the server? Thanks.
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.