Click here to Skip to main content
Page 1 of 5
Page Size: 10 · 25 · 50


Tag filtered by:  time [x]
Article 13 May 2013   license: CPOL
This article shows how an OTP generator works.
Question 8 May 2013   license: CPOL
Hi everyone :),I have a n-tier desktop application and i have a dll that referenced on all the tiers which hold a current login user details and i have a case that i used a Threading.Timer and when the timer run open a form in a specific case, in the opened form i can't access the shared...
Answer 30 Apr 2013   license: CPOL
your are initalizing the Timer object again and again!Take it completly into the loop. I would also extend it with a custom object adding a name/identifier attribute to the Timer:public class MyTimer extends Timer{ private final strID; // final -> has to be set by...
Question 30 Apr 2013   license: CPOL
Hello there, I want to ask you people a question. Can a java timer be initialized in a for loop? So that the timer will once run once with a value taken from an ArrayList. Something like the idea bellow: void myTimerMethod(){ int size=ArrayList.getSize(); Timer...
Answer 22 Apr 2013   license: CPOL
The app you are using is very badly formed (or if you wrote it, you should rewrite it).Really the only way to do this properly is to convert the times to number of seconds (even if the elapsed time is years, weeks, days, hours, minutes or already seconds) and then you can do all the...
Question 22 Apr 2013   license: CPOL
Hi guys!I am trying to create an array that stores 4 lap times, for example:Double arrayName[4] = {1.40, 1.45, 1.32, 1.20};Then I need to add all these figures together and produce a total, average, fastest etc.My problem is, they are not calculated as time, but as floating point...
Answer 17 Apr 2013   license: CPOL
Little code snippet about timer. Hope that help. Timer timer; int secondsToPlay; private void StartPlay_Click(object sender, EventArgs e) { timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); ...
Answer 17 Apr 2013   license: CPOL
You need to use Timer[^]Examples:http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/43daf8b2-67ad-4938-98f7-cae3eaa5e63f/[^]http://www.dotnetperls.com/timer[^]http://forum.codecall.net/topic/65434-c-working-with-timers/[^]Microsecond and Millisecond C# Timer[^]All about...
Question 17 Apr 2013   license: CPOL
I need help with making a code that checks every second if Datetime is started. If it is started it should close the already running function. I know dispatchertimer but I want it to run the thread in background. The reason is because I have a mediaplayer that plays till datetime is started,...
Article 14 Apr 2013   license: CPOL
MicroTimer: A microsecond and millisecond timer in C# that is used in a similar way to the .NET System.Timers.Timer.
Answer 14 Apr 2013   license: CPOL
as you just need to display time and you have asp.net page which gives you the flexibility of code behind model so you can use form load part of serverside code and simply write the followingProtected void Form_Load(object sender,EventArgs...
Answer 13 Apr 2013   license: CPOL
Use the DateTime.ToString[^] method.You can use the Standard Date and Time Format Strings[^] to get the time: DateTime.Now.ToString( "T" ) or the Custom Date and Time Format Strings[^]: DAteTime.Now.ToString( "HH:mm:ss" )
Question 13 Apr 2013   license: CPOL
This is the code I have now:Sub Page_Loadlbl1.Text="The date and time is " & now ()End SubI want to modify & now to display only...
Answer 12 Apr 2013   license: CPOL
Roughly speaking, I would first normalize the amplitude of the two graphs and then time-translate one of them until best superposition is reached.
Question 12 Apr 2013   license: CPOL
I have a C# project that takes multiple (2 at the moment) microphones as an audio devices, detects sound from them, processes their audio frames with Fourier Transform and displays them. It also prints them in three colors: red is for microphone that has stronger input, green is for microphone...
Answer 1 Apr 2013   license: CPOL
No, if you simply need to track elapsed "real" time, use System.Diagnostics.Stopwatch:http://msdn.microsoft.com/en-us/library/system.diagnostics.stopwatch.aspx[^].This is the most accurate way of measuring time available.As I cannot be sure I really can understand the scenario and the...
Question 1 Apr 2013   license: CPOL
I am needing help creating a WPF application where the user schedules a DATE in the future and a TIME in the future to where it will then call some method or do something else like go invisible. I am not concerned with what it does after the interval is set. I have all the needed functionality...
Answer 1 Apr 2013   license: CPOL
You should never try to use System.Windows.Forms.Timer with WPF, and almost never even with Forms. The accuracy of this timer is prohibitively bad for most applications. There are (at least) three more timer types you can...
Question 1 Apr 2013   license: CPOL
I am needing help with the dispatcher class from WPF and would like it to function much like the Windows Forms Timer class example below. To see the Windows Form Application it would require you to copy the code into a new WForms app and place the code in a Form1.cs file. In the Form 1...
Answer 26 Mar 2013   license: CPOL
For example you can try to settle it, by following way:#include #include int main(){ time_t your_time = .... struct tm your_time_tm = *localtime( &your_time); struct tm then_tm = your_time_tm; then_tm.tm_sec += 100; mktime(...
Answer 21 Mar 2013   license: CPOL
1. Convert the string to hours, minutes and seconds2. combine these three numbers to calculate the total number of seconds3. Add 804. Split up the resulting value back to hours, minutes and seconds5. convert that back to string.There may be shortcuts or faster ways of doing this, but...
Question 21 Mar 2013   license: CPOL
hI..I got a very simple question..i got my current time in "HH:MM:SS"formathow i 'm going to calculate the new time if i got a new value in second format.for example, my current time now is 16:36:30. I got 80 second and need to add this value to my current time.What is the simply way...
Answer 19 Feb 2013   license: CPOL
Can any one send sample wcf project with some real time code and architecture of the project...
Answer 14 Feb 2013   license: CPOL
If you choose to use the TimeSpan, be aware about the Days part:TimeSpan t1 = TimeSpan.Parse("23:30");TimeSpan t2 = TimeSpan.Parse("00:40:00");TimeSpan t3 = t1.Add(t2);Label1.Text = t3.ToString(); //to bind to labelConsole.WriteLine(t3); // 1.00:10:00With DateTime:DateTime d1...
Answer 14 Feb 2013   license: CPOL
If you mean adding two dates this will help System.DateTime today = System.DateTime.Now;System.TimeSpan duration = new System.TimeSpan(36, 0, 0, 0);System.DateTime answer = today.Add(duration);System.Console.WriteLine("{0:dddd}", answer);you can find more details about this in...
Question 14 Feb 2013   license: CPOL
How to calculate two different time in C# (windows)Ex- Time 1 - 11:10:40Time 2 - 00:12:10Sum - 11:22:50Thank in advance
Answer 20 Jan 2013   license: CPOL
Hi,For consistency I would assume you require the server time and not the client pc time.All you need to do is set the Time on your table with a default of Getdate().In this way you don't pass any value on insert.
Answer 20 Jan 2013   license: CPOL
Hi,For consistency I would assume you require the server time and not the client pc time.All you need to do is set the Time on your table with a default of Getdate().
Answer 17 Jan 2013   license: CPOL
HI,Here you are passing only session values.string query = "insert into Table_1(SensorValue,Time) values(" +hexValue+ "," +DateTime.Now.ToString("HH:MM:ss")+")";Thanks
Question 16 Jan 2013   license: CPOL
I am saving values to a database but I am not able to save them with current Time. I have created a colume with name Time in database, but dont know how to save time. SqlConnection sqlconn = new SqlConnection("Data Source=AAN-PC;Initial Catalog=latestsensordata;Integrated...
Answer 16 Jan 2013   license: CPOL
i think this will help You.. SqlConnection sqlconn = new SqlConnection("Data Source=AAN-PC;Initial Catalog=latestsensordata;Integrated Security=True"); SqlDataAdapter sa = new SqlDataAdapter(); string CurrntTime =...
Answer 16 Jan 2013   license: CPOL
Pass the value datetime.now() value to time. Then it inserts a value along with current time.
Question 9 Jan 2013   license: CPOL
Hi,The function below takes a very long time nearly 2 hours to execute. Can any body tell how to optimize this function?? Or how can we re-write this function without using Cursors??I tried SQL Profiler and Tuning also but of no help.Please help me get out of this.SET...
Answer 6 Jan 2013   license: CPOL
Just output a :00 at the end, given that you don't have any info for seconds.Oh, I see. I assume you're string mashing, so use the Substring method to get the parts you need and insert the : and :00 you need.
Question 6 Jan 2013   license: CPOL
Hi guys,I need help converting an UTC offset specified in the format "-hhmm" to "-hh:mm:ss" format. for Example, if my UTC offset is "-0530", the output format should be "-05:30:00"Thanks
Answer 5 Jan 2013   license: CPOL
Run the code in SQLProfiler and have it create indexes for you.http://msdn.microsoft.com/en-us/library/ms181091.aspx[^]http://www.datasprings.com/resources/articles-information/sql-server-2008-profiler-and-tuning-wizard[^]
Answer 26 Dec 2012   license: CPOL
Is the signer root certificate installed in windows? Is the Windows Certificate store trusted by the Pdf viewer? Supposing Acrobat, see this article: http://blogs.adobe.com/security/2008/08/setting_signature_trust_in_ado_2.html[^] (the settings described there are still valid)
Question 26 Dec 2012   license: CPOL
Hello,I got a VB.NET script which makes a PDF document signed. It means - insert a signature and a timestamp. But the final document is not verified and it shows that the signature is not valid: "this document has been altered or corrupted"Here is the code:certificateData =...
Answer 15 Dec 2012   license: CPOL
I found the solution to my problem.void t_Tick(object sender, object e) { TimeSpan ts = endtime.Subtract(DateTime.Now); string countdowndays = ts.Days.ToString(); daytxtblk.Text = countdowndays; string countdownhours =...
Question 12 Dec 2012   license: CPOL
Hello, i need to build an app that use a countdown (Years, Days, Hour, Minutes, Seconds). I've tried to write a code and i succeed to calculate the time, but when i try to put this time as a string in a texblock, he is not updating. Can anyone help me to set the textblock to update himself ?...
Answer 22 Nov 2012   license: CPOL
Some suggestions:You may want to review the indexes on the tables used if the select is too slow. With proper indexes, even millions of records are returned in a few seconds.Secondly, you may want to reduce the amount of data that is returned if that is to be displayed to the user. As you...
Question 17 Aug 2012   license: CPOL
Hi alli sent the sms using asp.net . but particular time the message need to send . and Checking the particular time automatically and send sms.Thanks & Regards,Jeeva
Question 31 Jul 2012   license: CPOL
i must create a keypress event on design time. how can i do this??? i want to make an event which should be handled without starting debugging. i mean i created an user control and when i press F1 key, it will open a help file about the control on Form1[Design].
Answer 31 Jul 2012   license: CPOL
Please go through the links below to know the implementation of KeyPress Event.how to use keypress events[^].Keyboard Event Handling: onkeypress[^].
Answer 31 Jul 2012   license: CPOL
Depends: if you are talking about adding an event to your class that users of your class can handle, then it's pretty easy - just add the code: /// /// Event to indicate [Description] /// public event EventHandler Name; /// /// Called to...
Answer 24 Jul 2012   license: CPOL
Can't speak for Linux, but on Windows you can look into _gmtime_s and time and difftime Look in MSDN under the topic "Time Management".
Answer 7 Jul 2012   license: CPOL
Good WCF project approach is described in the CodeProject at WCF Service Library: A Good Approach for WCF Service Application[^]
Question 7 Jul 2012   license: CPOL
Hi Friends Can any one send sample wcf project with some real time code and architecture of the project...With some real time scenario's .........mahesh.b.p.c
Question 4 Jul 2012   license: CPOL
How to create a timer from system date to a specified date and reverse counter of time to the notify a message on a new window?( on linux & windows )Thanks.

Page 1 of 5
1 2 3 4 5


Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid