time

Time delay on click

Can anyone send me javascript code on how I can construct a time delay from the time I click a button on a page to the time the function called by the button click is executed. I am a novice with javascript, and I have some code that performs a function when I click a button, and I just want to have a time delay. Thanks. ...

Synchronization (of clocks) between two remote computers

I'm looking into writing a simple synchronization ability into my app and one of the concerns that has popped up is synchronization of time between two remote computers, each with their own clock (in particular concerning the modification dates of files/objects). I'm sure a lot of research has been done on this topic and don't want to g...

MySQL DATETIME question

I have a DATETIME field. I would like to select all the records that have been updated in the last week. Right now I'm using this query: SELECT SUM(mins_spent) as time_sum FROM todos WHERE lastUpdate >= '2008-12-22' AND lastUpdate <='2008-12-28' But the results i get seem to be different depending on time of the day, e.g on 7 PM I mi...

How can I compare file creation time to the current time in Perl?

i want to compare the current time and file creation time in Perl but both are in different format. localtime is in this format: 22116291110813630 and file creation time is Today, December 29, 2008, 2:38:37 PM How do i compare which one is greater and their difference? ...

Handling historical calendar dates

What standards and strategies are there for handling historic dates described in older calendar form? The contemporary Gregorian calendar, with different length months, leap years, etc. is relatively easily handled with built-in programming language libraries, or data formats such as ISO8601, RFC3339 and RDF's OWL-Time ontology. Earlier...

Java calendar time, minute is wrong

Anyone know why the MINUTE method in java.util.Caldendar returns an incorrect minute? import java.util.Calendar; public class Clock { // Instance fields private Calendar time; /** * Constructor. Starts the clock at the current operating system time */ public Clock() { System.out.println(this.time.H...

Time Calendar Data Structure

We are looking at updating (rewriting) our system which stores information about when people can reserve rooms etc. during the day. Right now we store the start and time and the date the room is available in one table, and in another we store the individual appointment times. On the surface it seemed like a logical idea to store the ...

How to get current time in Python

Can anybody tell what is the module/method used to get current time ??? ...

How to set a maximum execution time for a mysql query ?

I would like to set a maximum execution time for sql queries like set_time_limit() in php. How can I do ? ...

Does anyone have recommendations for a good task/time management tool?

Does anyone have recommendations for a good task/time management tool. Ideally this would just keep track of programming tasks / the project and the time spent also the option to produce an end of week report would be advantageous ...

Lightweight process execution timer for Windows

Is there a lightweight process execution timer like Unix's time included with Windows? Sometimes I just want a rough estimate, without having to get out a real profiler. While I could roll my own, I would prefer to use an existing solution. ...

How would you store possibly recurring times?

I need to store whether something happens once, daily, weekdays, weekly, some days of the week, some days of the month, which may be numerical or symbolic, like first Monday of each month, and so on. Any recommendations? Any code, data structure or schema to look at? ...

What's the best way to manage dates across PHP, MySQL, etc?

My server is in Dallas. I'm in New York City.. and both PHP and MySQL have configuration variables for setting the timezone. How do I get them all to work together? What dates should I store in MySQL? How do I get PHP to handle changing the date based on the user's preference? Bear in mind: I don't think I'm ever having PHP explici...

Distributed time synchronization and web applications.

Hi there, I'm currently trying to build an application that inherently needs good time synchronization across the server and every client. There are alternative designs for my application that can do away with this need for synchronization, but my application quickly begins to suck when it's not present. In case I am missing something,...

Ruby: Math functions for Time Values

How do I add/subtract/etc. time values in Ruby? For example, how would I add the following times? 00:00:59 + 00:01:43 + 00:20:15 = ? ...

Monotonically increasing time in Java?

In a Java application I want to be able to take a timestamp at the start of an operation and be able to periodically check how long the operation has been running. The catch is: I do not want to be impacted by the Network Time Protocol moving the clock around, or the admin changing the time, or anything which can abruptly adjust the time...

How to set MySQL to use GMT in Windows and Linux

I'm just trying to get MySQL to store time in GMT... I've read the documentation here: http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html It says to set: default-time-zone='timezone' in an option file. However, I've googled for several different terms and cannot find possible values "timezone" is supposed to be. I also do...

Java equivalent to C#'s TimeSpan

Does Java have a data type that represents a period of time eg 34 seconds, 5 minutes etc. I've seen a few implementations of a TimeSpan that cover a Time period like from the 10th of December to the 11th of December. What I need is something like TimeSpan in C#. ...

How do you format date and time in Android?

How do you format correctly according to the device configuration a date and time when having year, month, day, hour and minute? ...

Lua - Current time in milliseconds

Hi, another Lua question: Is there a common way to get the current time in or with milliseconds? There is os.time(), but it only provides full seconds. ...