Top "Time" questions

How to get current time in python and break up into year, month, day, hour, minute?

I would like to get the current time in Python and assign them into variables like year, month, day, hour, …

python python-2.7 datetime time
How can I get the count of milliseconds since midnight for the current?

Note, I do NOT want millis from epoch. I want the number of milliseconds currently on the clock. So for …

java date time milliseconds
Command to get time in milliseconds

Is there a shell command in Linux to get the time in milliseconds?

linux bash shell time
A non well formed numeric value encountered

I have a form that passes two dates (start and finish) to a PHP script that will add those to …

php validation date time
What is the standard way to add N seconds to datetime.time in Python?

Given a datetime.time value in Python, is there a standard way to add an integer number of seconds to …

python datetime time math
Current time formatting with Javascript

I want to get current time in a specific format with javascript. With the function below and calling it will …

javascript date time format
Java: getMinutes and getHours

How do you get Hours and Minutes since Date.getHours and Date.getMinutes got deprecated? The examples that I found …

java date time
How to get only time from date-time C#

Suppose I have the value 6/22/2009 10:00:00 AM. How do I get only 10:00 Am from this date time.

c# datetime time
How to use timeit module

I understand the concept of what timeit does but I am not sure how to implement it in my code. …

python time timeit
Convert timestamp in milliseconds to string formatted time in Java

I am trying to convert a long value (number of milliseconds elapsed from 1/1/1970 i.e. Epoch) to time of format …

java datetime time timestamp epoch