Re: Is linux your daily driver? Hardware and Software Linux and Unix by Reverend Jim … dark as to what formatting actually did. In under 60 seconds I explained what formatting was in terms of paving and… Re: How to Implement Lazy Loading for Faster Web Portals Programming Web Development by jkon …, if LCP for mobile devices has improved from 3 seconds to 2.1 seconds (with SXG being the only difference), it’s… Seconds Converted using C++ Programming Software Development by Skabix …of seconds: "; cin >> seconds; day = seconds / 86400; seconds = seconds % 86400; hour = seconds / 3600; hour = hour % 3600; minute = seconds / 60; minute = minute % 60; seconds = seconds …;< endl; } if (seconds > 0) { cout << "Number of seconds: " << seconds << endl; } … Re: Seconds Converted using C++ Programming Software Development by Skabix … and I have added 'L' to 'days = seconds / 86400L;'. The warnings are gone and days are … the time. For example I can do 86401 seconds, but not 172800 (2 days). Any new …cin >> seconds; day = seconds / 86400L; hour = seconds / 3600; hour = hour % 3600; minute = seconds / 60; minute = minute % 60; seconds = seconds % 60; // … Re: Seconds Converted using C++ Programming Software Development by Skabix …:HH:MM:[I][/I]SS you are expecting from the seconds you enter, right? Also, it might help to actually use… of seconds: "; int seconds; //variable definition cin >> seconds; day = seconds / 60 / 60 / 24; hour = (seconds / 60 / 60) % 24; minute =(seconds / 60) % 60; seconds = seconds % 60… Re: Seconds Converted using C++ Programming Software Development by Skabix …> //using namespace std; int main() { // Constants for Conversion long seconds, minutes, hours, days; cout << "Enter the number… of seconds: "; cin >> seconds; day = (seconds / 60 / 60) / 24; hours = (seconds / 60 / 60) % 24; minutes =(seconds / 60) % 60; seconds = seconds % 60; // Calculate… Re: Seconds Converted using C++ Programming Software Development by Fbody [QUOTE][CODE] 13. day = seconds / 86400; 14. seconds = seconds % 86400; 15. hour = seconds / 3600; 16. hour = hour % 3600; 17. minute = seconds / 60; 18. minute = minute % 60; 19. seconds = seconds % 60;[/CODE][/QUOTE] You're overwriting your hour and minute answers immediately after generating them. Lines 16 and 18 are wrong. Re: Seconds Converted using C++ Programming Software Development by arjunpk …> //using namespace std; int main() { // Constants for Conversion int seconds, minute, hour; double day; cout << "Enter the… number of seconds: "; cin >> seconds; minute=seconds/60; if(minute!=0) seconds = seconds%(minute*60); else seconds=0; hour = minutes/60… Re: Seconds Converted using C++ Programming Software Development by arjunpk … std; int main() { // Constants for Conversion int seconds, minute, hour; double day; cout << …number of seconds: "; cin >> seconds; minute=seconds/60; if(minute!=0) seconds = seconds%(minute*60); else seconds=0;… cout << "Number of seconds: " << seconds << endl; return 0; }[/CODE… Re: Seconds Converted using C++ Programming Software Development by Skabix Could you give insight as to how you would arrange the lines? Just removing the lines removes the mathematical process of converting seconds into minutes / hours, causing math errors when the program is ran. Also removing the lines does not fix the issue of 'days' not being computed. Re: Seconds Converted using C++ Programming Software Development by WaltP …:HH:MM:[I][/I]SS you are expecting from the seconds you enter, right? Also, it might help to actually use… Seconds to minutes help Programming Software Development by Gl753 …String input = JOptionPane.showInputDialog(null, "Enter a value for seconds (positive whole number): "); int second = Integer.parseInt(… is converted to: " + minutes + " minutes and " + seconds + " seconds."); Any pointers / tips would be greatly appreciated :) Re: Seconds to minutes help Programming Software Development by oussama_1 for seconds you need the remainder: int seconds = second%60; Seconds timer Programming Software Development by stanwaka … int main() { cout << "Please enter seconds: ";//prompt for user int timer; //int for user …= clock(); // Update the timer var cout << "Seconds since started: " << timer / 1000 <<… endl; // Print the time since the program started in seconds } cout << "The program has been … Re: Seconds timer Programming Software Development by stanwaka …() { cout << "Please enter time in seconds: "; //user prompt int input; //int for time input… clock(); // Update the timer var cout << "Seconds since started: " << timer / 1000 <<…in " << input << " seconds" << endl;//completed message system("pause"… Re: Seconds timer Programming Software Development by McQueen Hi, could you explain to me what do you mean by this code? [code=c++]void wait ( int seconds ) { clock_t endwait; endwait = clock () + seconds * CLOCKS_PER_SEC ; while (clock() < endwait) {} }[/code] Seconds Between Two Dates Programming Web Development by Joe34 …] The code at the end alerts a certain number of seconds, but it is not even close to the time between… write a program that does a count down on the number of seconds you entered in D prog Programming Software Development by DCYPHER …ToString() lblMinutes.Text = minutes.ToString() lblSeconds.Text = seconds.ToString() 'ENABLE THE TIMER tmrCountdown.Enabled = True …= hours.ToString() Minutes.Text = minutes.ToString() Seconds.Text = seconds.ToString() 'ENABLE THE TIMER tmrCountdown.Enabled = True… C++: Converting seconds to days/hours/minutes/seconds Programming Software Development by antoinette.boulevard …= 60; int main() { long InSeconds, InMinutes, InHours; int seconds; int minutes; int hours; int days; cout << …see where the 40 comes from? seconds = InSeconds % SECONDS_IN_MINUTE ; // throw away seconds used in previous statement and convert … Re: write a program that does a count down on the number of seconds you entered in D prog Programming Software Development by AndreRet Under your timer, subtract 1 second from your original start seconds criteria. Everytime the timer fires, another second is deducted from the previous value. I have asked that your post be moved to .Net, this is currently in VB6. Re: C++: Converting seconds to days/hours/minutes/seconds Programming Software Development by pasx …; struct tm t; t.tm_sec += uiSec; //add a bunch of seconds into struct time_t tt = mktime(&t); //mktime does all… for you cout << t.tm_sec << " seconds " ; cout << t.tm_min << " minutes… How to stop timer after 10 seconds Programming Web Development by infoitmanoj … = document.getElementById("minutes"); seconds = document.getElementById("seconds"); // if less than a … remaining if (seconds < 59) { seconds.value = secs; } else { minutes.value = getminutes(); seconds.value = getseconds… Re: convert seconds to minutes, hours, days, months, years, etc. Programming Software Development by Auron …, then return // what is left seconds = seconds - time[0]; // we have the seconds so remove it time[1] = ( seconds / 60 ) % 60; // we divide…// the same will happen here as above but seeing // the seconds was 120 (153 - 33) it will return 2 printf( &… converting milliseconds to hours, minutes, and seconds(please help) Programming Software Development by simplyflawless …long millis) { double hours; double minutes; double seconds; int milliseconds = 0; int currentSeconds = 0;…milliseconds = input.nextInt(); seconds = milliseconds/1000; hours = seconds/(60*60); minutes = seconds % ((60*60)); System… Converts a number of seconds into days, hours, minutes, and second?. Programming by sasha12 …minute(s), %d second(s).\n", days, hours, minutes, seconds); return 0; } } void to_dhms(int total_s, int *d,…int *h, int *min, int *s); { days = seconds_in / 86400; seconds = seconds_in % 86400; hours=seconds_in / 3600; hours= hours %3600; minutes= … trying to convert a number of seconds into days, hours, min and seconds Programming by sasha12 … %d s ... \n", seconds_in); result= to_dhms(days, hours, minutes, seconds); printf("That is %d day(s), %d hours(s… minute(s), %d second(s).\n", days, hours, minutes, seconds); return 0; } void to_dhms(int total_s, int *d, int *h… MPH to Minutes and Seconds to run a mile Programming Software Development by nuubee … main() { double mph, count = 1; int mpm, seconds; cout << "\n"; cout <&…; count = count + 1; } while (mpm < 1); seconds = mpm % 60; cout << "You are running 1…lt; " minutes and " << seconds << " seconds."; cout << endl; return 0; … Re: Convert Seconds to Hours Minutes (must use Pass by Reference) Programming Software Development by yellowSnow …float total; printf("Enter the number of seconds ->"); scanf("%d",&total…;", *min); printf ("the number of seconds is ->", *sec); }[/code][/QUOTE] Here… mins, secs; printf("Enter the number of seconds -> "); scanf("%d", &… how to convert a number of seconds into days , hours, minutes and seconds Programming by sasha12 >hello i want to print convert seconds into days, hours, munite, and seconds but i do not know how to call void… minute(s), %d second(s).\n", days, hours, minutes, seconds); return 0; } } void to_dhms(int total_s, int *d, int *h… IBM Laptop R40 Screen Goes Blank after 18 seconds Hardware and Software Hardware by Bob423 …it several times. The backlighting cuts out after exactly 18 seconds but everything else is working! It's just like …clockwork: move the screen, it's on for 18 seconds, then the backlight goes off! The laptop otherwise works …the screen again, and it's on for another 18 seconds then the backlighting goes off again?!?! Does anyone have …