o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

calculate time (24-hour) -

for example:
time-A: 1749
time-B: 1555
how to count: how many minutes between time-A and time-B?
or is there VB library can do for this?

 

getting cost -
hi yall, i have a text bow that will diplay a time in this format hour:minutes:seconds. I am making a program to calculate the cost of a certain amount of time. it costs $15 for 1 hour. now say i click stop and the text is 0:45:00 . how can i make it calculate how much that costs


Get current time in Hour/min/sec -
Hi all. I am writing a simple class that is a time object that displays the inputed time as either military or standard time. In the constructer I set the hour/min/sec variables to 0. Then use a setTime function to set the time to what ever I want. An example would be setTime(15, 23,


Convert to 24 hour time -
I really need to know how to convert time that is in this format 04:05:00 PM to 24 hour time 16:05.. Please help!! Also is there a funtion that will calculate the difference in hours between to times? And can I convert the anser to an long number?


calculating hourly means -
Hello, I have a excel file in the following format: Column A=date Column B=time Column C=time rounded Column C=temperature I have a series of temperature measurements at irregular intervals. I have figured out how to round the time to the nearest hour (time rounded) and now I


calculate time (24-hour) -
for example: time-A: 1749 time-B: 1555 how to count: how many minutes between time-A and time-B? or is there VB library can do for this?


custom time -
Is there any way I can adjust my system time in windows XP, such that 40 seconds will be equal to 1 minute and 40 minutes will be equal to 1 hour. Instead of the usual 60seconds for a minute and 60 minutes per hour. What I mean is I would like 1 hour to tick at every 40 minutes, and 1


Windows shutdown program help -
Hi guys I am thinking of making a program that will be on a timer to shut down the PC and the user will be able to set the desired time ( 1 hour, 2 hour, 3 hour, 4 hour ect ect) for how long he/she has set the for. I was wondering if something like this can be done and what funtions wo


calculate salary based on punch card details -
Hello there... anyone's have any idea how to solve this problem? I want to know if there is any method that i can use to calculate the total working hours for an employee for a month based on the punch card. i have create a form that somewhat look like this; DATE----IN----


Need help fixing control to show AM, PM time, not 24 hour time -
I've have the c++ source code for a dayview control that displays the time on the control in 24 hour time; 01, 02, 13, 14, (like military hours). I would like to change the display time to show 12 hour AM and PM time. Can anyone help with finding where the code is that sets up the


Calculating with tenth of second -
Hi. I want to calculate running pace (minutes per kilometre (or mile)): pace=time/distance I declared time as date and distance as single I know how to do this when I got time without tenth of second (01:02:12 - 1 hour, two minutes, 12 seconds) but how to do this when i also g


Help me fix this control to show AM/PM time, not 24 hour time -
I have the c++ source code for a dayview control that displays 24 hour time on the control; 01, 02, 13, 14, (like military hours). I would like to change the display time to show 12 hour AM and PM time. Can anyone help with finding where the code is that sets up the 24 hour display


How to calculate difference between two times -
I am using VB from MS Access. I have two fields that are "Date" fields. I am using them to store times (a start time and an end time). I want to calculate the difference between the two times in hours. I have tried using DateDiff but I can't seem to get it to work. Curre


Time and subtraction -
I am testing performance and comparing time consumptions in Java and .net and for this I need to calculate in milliseconds. My timestamps are: time1 = Now.Hour & ":" & Now.Minute & ":" & Now.Second & ":" & Now.Millisecond when


Hour and Date calculations -
Hi. I need to perform calculations starting from the current Time (system Time). What i need in detail is to save a time (say arrival time or system time), then I ask the user how long he wants to stay (i.e. 200 minutes). At the end i need to show both is arrival time and the


adding an hour to clock -
does anyone know how i might go about adding an hour to time for time zones based on this Label1.Caption = Format(Time, "HH:MM:SS") for example how would i alter this to add an hour to it eg. 11:30 = 12 :30 any help appreciated thanks


Simply calculation problem -- I thought -
Hello, I am trying to write a simple program that converts miles per hour to a pace time (minutes per mile). I understand that all I need to do is to divide 60 by the miles per hour and that's it. An example is: 60 divided by 10 miles per hour is 6 minutes per mile (pace). I comp


Problem with hours in dates(Resolved) -
You can get the hour portion of the time from a date data type using the hour method. However, this returns 5 for 5:00 AM, and 5 for 5:00 PM. What technique do you use to get this in 24-hour format? I would like 5 for 5:00 AM, and 17 for 5:00 PM.


SQL query with time help -
ok, i have 2 parameters: start (hour) end (hour) I have a table and a field, and this field stores a datetime value. what I want to know is, how can I query this field so it brings me back the records of the start time between start (hour) and end (hour) so i will be givin


Time Zones not showing correct time -
I dunno if this is a real major issue or not, but for some reason, my time zone (GMT+10 Sydney Australia...) is 1 hour out, we recently had daylight savings yesterday and it is now 1 hour slow, and i'm not exactly sure that before the change if it was 1 hour fast or not. Is there some


12-hour Time function syntax -
Hi all, I'm making a clock-type program, and it outputs the time to a label, updating it with a timer (the timer code has "Label.caption = Time"). However, I have a checkbox that will allow the user to tick to display the time in a 12-hour format rather than 24hour. I've l


time defference anyone -
helohhh... i want to know how to calculate diffrence between two time... the situation is somewhat like this... once you've enter the system... you'll be clocked in automatically... after an hour or so, you've decided to exit from the system what can i do to get the differe


DTPicker Question -
I have my time picker in HH:MM AMPM format. I want the default time when the app loads to be at the start of the next hour (ie whether it's currently 1:15 or 1:39 I want it to say 2:00). The issue I'm having is when it's 11 and the next hour means the AM or PM should change. I can s


time format in vb... -
k, im tryin to make a program that does a logging process and am using Time before what it logs, but my Time always comes out in 24 hour, anyway of changing it to 12 hour?


understanding timespan -
i searched on it, and couldn't come up with anything helpful enough for my particular issue, so will ask the specifics here. I need to calculate the time difference across midnight, from a given date and time to another given date and time, and based on how long assign a value to it


Calculate Time Remaining -
This isn't specifically a VB problem, but I'm sure someone here can answer it. I need to estimate the time remaining for a process. The variables which I want to calculate it with are the completion ratio (0 - 1), and the time that has elapsed since the process began. From this


[2005] How do I use the Hour object in 05 -
I'm trying to set the hour to the current hour, like this: Me.Hour = Date.Now.Hour But this isn't working in 05. The IDE object browser says the Hour object is read only.


The time has changed again.... -
The time for the forum has moved forward an hour it seems. That would be OK if the forum time was the time in the UK, but it's not, it's GMT, which doesn't move. My time is GMT+2, and it's 0820 here now so GMT should be 0620. Therefore my time, which I set to GMT+2, according to the


Speed Calculations -
Ok, I need a little help here guys, I've got a bit of brain fade If I have a vehicle that takes 2 seconds to travel 33 feet, how can I calculate the vehicles speed in miles per hour and kilometers per hour from this data? Thanks in advance Andy


Time Zone Identification -
Hi, How can I make my VB app detect the current time zone, then work out GMT from the local time? e.g. If the time zone was CET (GMT+1), the program would detect that CET is one hour ahead of GMT, and display the time minus one hour (so it displays the time in GMT). Cheers.


Time data type and how to handle it -
Good morning, it's easy to check if the data entered on a textbox is a date using IsDate functions but how do you check for time, is there a IsTime function? Also, how do you calculate time in VB. My monitoring system which deal in vehical repair has to monitor the amount time minus


Convert From 12 Hour To 24 Hour Time ***RESOLVED*** -
I don't want to change the user's regional settings. I want to figure out what the time is (in 24 hour time), regardless of what the user's regional settings are.


how to display time in 12 hour format -
i want to display only time in 12-hour format.so please tell me how to get time only in 12-hour format please. i dont want time with date.i need time only with 12 hour format with am/pm


Time -
I need to get the system time of the PC my program is running on, but everything i try gives me 24 hour time, i need it in 12 hour time like h:m:s Any help?


Get hour of time - dtpicker -
how would i get the hour of the time and put it in text1 and get the AM/PM of the time and put it in text2? help pls...


calculate time difference. (Resolved) -
How can I calculate the difference in time in php. on my web page is a javascript clock running and a text box for them to enter there time, what I want is if there is less than 2 hours between the jscript time and the time they have entered I want to it error else just submit the for


Calculus with hour -
I have an table wich have eg 2 columns, begin hour and end hour. hour_ini hour_fim 07:00 07:15 07:16 07:30 07:31 07:45 07:46 08:00 08:01 08:15 08:16 08:30 08:31 08:45 08:46 09:00 interval I have a


- Convert TimeString to 12 hour format -
Hello, How can I use the TimeString to convert the system time, to 12 hour format and not 24 hour format Military time. I have a fuction on my form that returns the current system time. Label1.Text = TimeString, but it return 17:37:52 I would like this to return 5:37:52 or


[2005] Showing System Time -
In VB6 to show the system time you just use: Time E.G: MsgBox Time In VB.NET is there a way to? I am using this atm: Code: Function Time() As String If Len(Second(Now)) = 1 Then Time = Hour(Now) Mod 12 & Chr(58) & Minute(Now) & Ch


time problem in database / dataset -
i want to just save time (hour and minute) in database. if i take date/time field in Access db or in XML then it is taking compelete date and time value (predefined value for date). how to avoid this? actually i want to store a task start and end time. so the values should be only h


Plus or minus hours -
I use this code to print time $Time=date("G:i A"); echo $Time; output (for example): 20:51 PM the problem that hour in my country is 18:51 PM .. so how can I minus 2 hour from day. Thanks