time

Whats a Good Javascript Time Picker ?

What's a good time picker for jquery or standalone js? I would like something like google uses in their calendar where it has a drop down of common times in 15min intervals or lets you manually type in a time and it validates it. ...

Can Excel give a notification if a the value of a cell changes out of limits in a certain time?

I would like to learn if Excel can notify me if the value of a cell is changed out of a limit within a certain interval? Example: Cell A1 has a value of 10, the limits are +1 and -1, the interval is 1 minute Now I would like to be notified if the value of A1 changes below 9 or above 11 within the interval of 1 minute Does anyone know i...

Xpath query and time

Hi, this is the content of my XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <mainNode> <sub time="08:00"> <status id="2">On</status> <status id="3">Off</status> </sub> <sub time="13:00"> <status id="4">On</status> <status id="7">On</status> </sub> <sub time="16:00"> <status id="5">On<...

jQuery time picker

I know there are a few plugins out there but I was wondering if anybody here had a preference for any particular one. I'm looking to fill a text input with a time that the user can choose in 15 minute intervals. ...

Work out the percentage of the day that has elapsed

Slightly strange question, but hopefully someone can help. In essence, if the time was 12pm the the elapsed percentage would be 50%, 6am would be 25% and 16pm would be 75%. Given the current time, how could you work out the amount of day that already passed? ...

How do I handle date and time in different time zone ?

I'm developing an international software that act as a simple project management software and I'm facing a problem. This problem is about date/hour and time zone. When a message is sent from one time zone to another time zone I can store the UTC (GMT) time in my database and then have it displayed differently according to the user's time...

Looking for benchmarking code snippet (c++)

Some loading routines in my program takes to long to complete. I want a quick small snippet for checking how long a function took to execute. By small I mean "preferably without 3rd party libraries". Maybe something as simple as taking the system time? start = current_system_time() load_something() delta = current_system_time()-start l...

Python's version of PHP's time() function

I've looked at the Python Time module and can't find anything that gives the integer of how many seconds since 1970 as PHP does with time(). Am I simply missing something here or is there a common way to do this that's simply not listed there? ...

Recommended Web Based Time/Task Management Solution For Personal Use?

Hello, I know this is less programming related and more time management related, but I value the feedback of the users on this site. I'm finding myself particularly busy this semester, managing various tasks and timelines between work and school. Further, I find myself running around between labs, work, home, libraries, etc. For thes...

How can I measure time with microsecond precision in Java?

I saw on the Internet that I was supposed to use System.nanoTime() but that doesn't work for me - it gives me the time with milliseconds precision. I just need the microseconds before and after my function executes so that I know how long it takes. I'm using Windows XP. Basically, I have this code that, for example, does 1 million up to...

Is it possible to determine the users time from a web request?

Is it possible on a web server to determine the users local time and timezone when they sent the request? Could it be done using javascript to capture it and post it back to the server? My company want to track how many users use our site outside of office hours (no I dont really know why either!). Thanks. ...

What's a simple way to convert between an am/pm time to 24 hour time in javascript.

I've been playing with jquery and I've run myself into a time problem. I've got 3 time input select boxes, one for hours, one for minutes, and one for the Meridian. I need to convert this time into a 24 hour string format and then stick it into a hidden input. var time = ""; time += $("#EventCloseTimeHour option:selected").text(); time ...

How to supply a value to the javascript method Date.setTime() from PHP?

Is it time()? Is it time().substr(microtime(), 2, 2)? Is it time().substr(microtime(), 2, 3)? Kind of lost with the following snippet. function updateClock ( ) { var timeStamp = <?php echo time().substr(microtime(), 2, 2);?>; var currentTime = new Date ( ); currentTime.setTime( timeStamp ); ... ... } My goal is t...

How do I model data that slowly changes over time?

Let's say I'm getting a large (2 million rows?) amount of data that's supposed to be static and unchanging. Supposed to be. And this data gets republished monthly. What methods are available to 1) be aware of what data points have changed from month to month and 2) consume the data given a point in time? Solution 1) Naively save every s...

add decimal as time

is there anyway to add a group of decimal numbers and excel treat it as time? example; 15.00 = 15 hours 1.00 = 1 hour .20 = 20 minutes .45 = 45 minutes .15 = 15 minutes excel adds this to 16.80, but if you want it as time the answer would be 17.15 17 hours 15 minutes ...

Android - Get time of chronometer widget

I have a Chronometer widget in my Android app. I was wondering how to get the time from it. I tried getText, getFormat, getBase, etc, but none of them work. This is probably a easy question, but I could not find it on Google. Thanks, Isaac Waller Example code snippet: Chronometer t = (Chronometer)findViewById(R.id.toptime); long time =...

How can I return a list of records based on contiguous time assignments in SQL Server 2000

I have a Table that looks like this: IP Hostname TransactionDate ------------- ---------- ------------------- 1.1.1.1 A 2009-01-01 01:00:00 1.1.1.1 A 2009-01-02 01:00:00 1.1.1.1 A 2009-01-03 01:45:00 1.1.1.1 B 2009-01-04 01:00:00 1.1.1.1 A 2009-01-05...

Simple way to change 180 to 03:00

Hey! I am trying to change a number of seconds in to a proper time stamp format. Like I do this to change 180 to 03:00 private void writeTime(int tempo) { TimeSpan otempo = new TimeSpan(0, 0, tempo); string minutos = ((otempo.Minutes <= 9) ? "0" : "") + otempo.Minutes.ToString(); str...

Print Epoch Time in Different Languages

As you may know, tonight, at exactly 23:31:30 UTC, Epoch Time will reach 1234567890! Hurray! One way of watching epoch time is by using Perl: perl -le 'while(true){print time();sleep 1;}' Can you do the same in another programming language? ...

Python date time, get date 6 months from now

Hey, I am using the datetime module. I am looking to calculate the date 6 months from the current date. Could someone give me a little help doing this? Edit: The reason I am wanting to generate a date 6 months from the current date is to produce a Review Date. If the user enters data into the system it will have a review date of 6 mo...