Top "Time" questions

How to convert a time string to seconds?

I need to convert time value strings given in the following format to seconds, for example: 1.'00:00:00,000' -> 0 …

python time python-datetime
Convert seconds to hh:mm:ss in Python

How do I convert an int (number of seconds) to the formats mm:ss or hh:mm:ss? I need …

python django time
current/duration time of html5 video?

I need a way of getting the total time length of the video and the current time with jquery and …

jquery html time html5-video duration
Convert java.util.date default format to Timestamp in Java

The default format of java.util.date is something like this "Mon May 27 11:46:15 IST 2013". How can I convert this into …

java date time timestamp java.util.date
Go / golang time.Now().UnixNano() convert to milliseconds?

How can I get Unix time in Go in milliseconds? I have the following function: func makeTimestamp() int64 { return time.…

time go unix-timestamp date-conversion
milliseconds to days

i did some research, but still can't find how to get the days... Here is what I got: int seconds = (…

java math time milliseconds
Android get Current UTC time

What is the function to get the current UTC time. I have tried with System.getCurrentTime but i get the …

java android datetime time utc
PHP How to find the time elapsed since a date time?

How to find the time elapsed since a date time stamp like 2010-04-28 17:25:43, final out put text should be …

php date time timestamp relative-time-span
Lua - Current time in milliseconds

Is there a common way to get the current time in or with milliseconds? There is os.time(), but it …

time lua
In Ruby on Rails, what's the difference between DateTime, Timestamp, Time and Date?

In my experience, getting dates/times right when programming is always fraught with danger and difficulity. Ruby and Rails have …

ruby-on-rails datetime date time timestamp