Top "Time" questions

Create a unique number with javascript time

I need to generate unique id numbers on the fly using javascript. In the past, I've done this by creating …

javascript time numbers unique
How do you check if a string is not equal to an object or other string value in java?

I have been trying to make a clock that the user can set. I wanted the user to be asked …

java string time if-statement user-input
How do I represent a time only value in .NET?

Is there a way one can represent a time only value in .NET without the date? For example, indicating the …

c# .net datetime time
Time in milliseconds in C

Using the following code: #include<stdio.h> #include<time.h> int main() { clock_t start, stop; …

c time clock
Get time of specific timezone

I am using a JavaScript Date class & trying to get the current date using getDate() method. But obviously it …

javascript date time timezone
Python datetime - setting fixed hour and minute after using strptime to get day,month,year

I've successfully converted something of 26 Sep 2012 format to 26-09-2012 using: datetime.strptime(request.POST['sample_date'],'%d %b %…

python date datetime time date-manipulation
cmd line rename file with date and time

Project moving forwards, I can see why creating .bat files to do things can become addictive! I can now save …

date time cmd filenames add
Java Date cut off time information

I have a Java Date object containing date and time information. I want to write a method that cuts off …

java date time timestamp
How to print time in format: 2009‐08‐10 18:17:54.811

What's the best method to print out time in C in the format 2009‐08‐10 
18:17:54.811?

c time
Using %f with strftime() in Python to get microseconds

I'm trying to use strftime() to microsecond precision, which seems possible using %f (as stated here). However when I try …

python time strftime