better way to convert seconds into dd:hh:mm:ss -
right now i have
Code:
'Start time conversion
If Secs > 60 Then
Do
Secs = Secs - 60
Mins = Mins + 1
Loop Until Secs < 60
End If
If Mins > 60 Then
Do
Mins = Mins - 60
Hours = Hours + 1
Loop Until Mins < 60
End If
If Hours > 24 Then
Do
Hours = Hours - 24
Days = Days + 1
Loop Until Hours < 24
End If
and i don't think it's really efficient since this will be calculated every second.
in Secs, i have a huge number, which is the difference in time between today and some time after. i'd like to convert that into "dd Days hh Hours mm Minutes ss Seconds" without being as inefficient as what i have above. i could just format it as "dd:hh:mm:ss" but i'd like to have "Days Hours Minutes, and Seconds" though.
Easy way to convert ms to seconds -
Whats the easiest way to convert milliseconds to seconds or actually if anyone has it, convert ms to minutes and seconds. Thats what I actually need.
Thanks!!!
How to get Mins and Seconds from seconds left. -
Hi there,
How do i convert a number which is in seconds (eg 310 seconds) to 5 minutes 10 seconds?
Do i use the mod function (which i cant seem to be able to use in the pocket pc development.,.)
convert "x" seconds to hh:mm:ss (Resolved) -
How can i get the hh:mm:ss from a value in seconds?
convert the amount of seconds "7896 seconds" into "hh:mm:ss"
your question:
- For what use?
my answer:
- I get from the timer from a machine that a procedure stil runs for "x" seconds, this is n
converting seconds to minutes/seconds -
I have a var that holdes a number of seconds. I would like to convert that into minutes and seconds...
EX: myVar = 255 seconds... I would like to do an MSGBOX where the result would be: 4 minutes and 15 seconds...
any ideas?
thanks
Help with date/time conversion -
How can I convert a number of seconds into a date?
More detail:
I have this number "1051018120"
This number represents the total amount of time in seconds that have passed since 12/31/1969 @ 6:00:00 PM.
I need to convert those seconds into an actual date/time value,
convert seconds to text etc -
anyone have a nice function on hand that will convert x seconds into say "4 hours 15 minutes 23 seconds"
Convert seconds into minutes/seconds formatted for display, i.e. "1:30" -
I have seen this done in one line of code, would anyone happen to know what it is ? I have looked all over the net for it again, but can not find it.
Here are 2 more examples
100 seconds = 1:40
10 seconds = 0:10
How do you convert seconds to h/n/s format -
Hi, there.
I'm using VB.NET and have a number that represents total seconds. I would like to be able to translate the total seconds into a more useful format such as hours/minutes/seconds or even days/hours/minutes/seconds.
e.g. If there are 5657 total seconds, this translates
Converting Time -
Ok, so this question seems like something I should search for, and I did. And I got a few things on integer division and what not. Then I played around with those for an hour or so and gave up.
Heres my issue. I need to find the time elapsed between 2 given times (IE - The time the
Format$(Time , "(into seconds)") -
Hi I was wondering if anyone knew how to convert a time, ie
12:30:39
in just seconds or even if it was possible. I dont actually need the hours part just a conversion of minutes and seconds into seconds.
Its a real pain :-(
(Date) to (Long) seconds since GMT 1/1/1970 -
I want to make a function that will convert from a DATE/TIME datatype to a LONG datatype containing the number of seconds from 1-January-1970 to the supplied date.
The trick is that the seconds must always reflect seconds in GMT and the Date supplied may be from a different part o
Please Help, Quick!!!! -
my friend has an assignement due tomorrow --- honest it's my friend not me ,
she's trying to write a program that converts sec to mins and secs
ex. 190 seconds is equal to 3mins and 10secs
this is her non working code:::: --- PLEASE HELP!!!!!!!!!!! reply with this code fixed
Seconds to Minutes -
How do I convert seconds:mileseconds to minutes in VBasic? Is there a function? How would I go about converting, oh say, 45:15 seconds?
Converting a number to a valid time -
Hello all,
I am horrible with math so I am hoping there is someone out there that can help me.
I am using the media player control in a form, and it has a property of CurrentPosition that returns the current point in the film in seconds.
The problem is that the seconds keep
Converting hh:nn:ss.fff to seconds -
I have several lengths of time as data, all in the above format. None of them currently have leading zeros, though I can add them if absolutely necessary. This means some show hours, minutes, and seconds while others show only minutes and seconds without "0" displaying for th
Seconds into Minutes doubt!!! -
Hi All,
I'm trying to convert the number of seconds into hh:mm:ss format. Can someone help me out.
Thanx in advance
Convert current time to seconds -
I want to take a time and convert it to the number of seconds it is for that day. Is there a simple way to do this? I guess multiple the minutes by 60, the hours by...
What I'm wanting to do is let the user select a start and end time for a day and have the program check constantly
converting seconds -
whats the best way to convert seconds to mm:ss ?
ex:
121 converts to 2:01
Converting seconds to h:m:s -
How could I convert 446593 seconds into h:m:s using SQL?
Thanks,
Nick
Convert number of Seconds into a Standard Time format -
Hi
I'm using Mediaplayer1.Duration to get the length of the audio file. I want to display the CurrentPosition timer into StatusBar Panel ..how do I convert the currentposition in seconds to a standard time format like hh:mm:ss.
NetApi32.dll time convertion -
Hi,
Im working on a NetApi32 Library for VB, containing all NetApi32.dll functions.
I dont get i how to convert the time.
This value is stored as the number of seconds elapsed since 00:00:00, January 1, 1970.
Example Value:
1022899734 seconds.
Is there an easy function
[02/03] how to convert decimal result into hours,minutes,seconds -
hi! i just want to know how do i convert a decimal result into hours,minutes and seconds..i'm computing for an end expectation time and to get that what i do is i convert first the lapse time to seconds then divide the lapse time of the previous number of the records then i multiply it
Converting a number into hours, minutes, seconds -
How would you convert a number like 100043 (it's in seconds) into hours, minutes and seconds?
I'm stuck! I've tried using Timespan and DateTime but can't get it to work properly.
It would need to end up showing something like this 27h:46m:04s.
Can anyone help?
Resolved ** Access 2000, Adjusting Data -
have data for mins and seconds. ie. 1.684 for example the seconds are in hundredths, not based on 60 second per min. I need to convert them to the 60 second per min amount. I am not sure how to do this.
At first I thought separate the 2 parts, then multiply the seconds side by 60, h
Time in seconds -
Hi All,
Does anyone know if there is a function in Access \ VBA which will convert a value in seconds into time in hours and seconds? For example 9000 = 2 hours 30 mins.
I can do this in code, but I was wondering if there is a function that anyone knows about that will do it for
convert number to hrs and seconds -
I have a number field in my Access table, field1. Field1 shows data as seconds.
Field1
3600
I want to convert this to hrs and second so it shows as
1 hr
How can I do this?
Convert Unix Time to time of day. -
I am not sure how to go about this, but I have a unix time, which is a long number that represents the number of seconds since 1970 or seomthing.
I need to convert this unix time (i.e. 1107223897) to the time of day in universal/millitary time. So if it was 5:30:24 PM it would retu
Can I add two times together -
I need to add a few times together, say 14:35 (minutes:seconds) and 2:58 together. The required result in this case would be 17:33. Can I do this in VB?
Better still can I just convert a time such as 14:35 into seconds?
Seconds to Minutes Calculation -
This may seem like a simple request, but I have a process that runs for a specific number of seconds, and I want to show the user how many minutes and seconds have elapsed and/or remain.
137 seconds = ??:?? (minutes:seconds)
Does anyone have a good idea how to do this quick calcu
Convert .TickCount to Hours/Minutes/seconds -
Working with System.Environment.TickCount, it returns an integer containing the total amount of milliseconds that the system has been up since the last restart. What is an easy way of formatting this or converting this to Hours/Minutes/Seconds? I realize you can just start dividing by
**RESOLVED thanks tr0n** Date/time: seconds since 1970 -
Yuck!
Some data we get from Solaris systems has time stamps as seconds since 1970 (I think... I need to check the specifics!) I need to convert these to the actual date and time.
Thus 1 028 135 754 seconds is 31 July 2002, at 17:15:54
If it wasn't for the fact that months have
Not too sure on how to go about this logic -
Help!
I have been trying to figure how to go about coding this, my database goes as such:
WindowOpen AmountTime
ICQ 7 Seconds
IE 10 seconds
ICQ 7 seconds
ICQ 8 sec
DateDiff problem <resolved> -
Well, its not really a problem, but anyway, here is my question:
When I use DateDiff on two different Time() values, that has seconds elapsed bigger than 60 seconds, it shows the seconds value (DateDiff("S", time1,time2) ...) as more than 60 seconds, so it shows like:
Two question about time conversion -
Hi,
I have two questions:
1. How to convert single 6.5 hours into time 6:30
2. I wan't to convert 3665 seconds into 1:01:05 (can be string)
Thanx
Zagor
Astronomy conversion -
I have an RA and Dec in decimal degrees. I need to convert them to hrs min sec. I know how to go from hrs min sec to degrees, but not back.
For example, I have an RA = 66.918277 and Dec = 24.622590
I would appreciate someone showing how I would convert these to hours minutes seco
Format Seconds To HH, NN, SS *Resolved* -
Hey all
I Just cant seem to wrap my brain around this:
I need to take Seconds, lets say 121 seconds
and turn it into Hours:Minutes:Seconds ( 00:02:01 )
I know it can be done I just cant think it through heh
any help??
Convert HH:MM into seconds -
Hey Folks,
I have 2 values that i have extracted from a website in 2 textboxs.
text1 = 7:6
text2 = 7:06:33
is there any ways in VB6 to convert them into Seconds ?
text3 = 25560
test4 = 25593
?? have been trying to code it since past 2 weeks but no luck with the status
Convert Hours Mintues and seconds into decimal -
If I have 5:32:43 (5 hours 32 Minutes and 43 Seconds) is there a function to turn this into decimal (5.5453)
Thanks
RTF to Txt conversion -
Hi,
I am looking for RTF to txt conversion softwares which is free/open source. Rich text box doesn't help me out to convert the rtf as needed. Currently I have a software that will convert RTF to pure text file (no tabs, no special characters[will be replaced with equivalents], etc
Date-Time convert to DWORD value -
Hi,
I need a doubleword(32bit) variable that contains UTC time in seconds after 1.1.1970.
Example:
9:54:00 22.2.2008 is equal as DWORD value 1203670440.
Is it possible to convert this value somehow with VB or I have to write code to calculate it?
Thanks,
Binny