Top "Time" questions

How can I parse a time string containing milliseconds in it with python?

I am able to parse strings containing date/time with time.strptime >>> import time >>> …

python date time datetime-parsing
How to compare times in Python?

I see that date comparisons can be done and there's also datetime.timedelta(), but I'm struggling to find out how …

python datetime time comparison timedelta
Should MySQL have its timezone set to UTC?

Follow up question of https://serverfault.com/questions/191331/should-servers-have-their-timezone-set-to-gmt-utc Should the MySQL timezone be set to UTC or should it …

mysql time utc
How do I check the difference, in seconds, between two dates?

There has to be an easier way to do this. I have objects that want to be refreshed every so …

python time datediff
Converting 24 hour time to 12 hour time w/ AM & PM using Javascript

What is the best way to convert the following JSON returned value from a 24-hour format to 12-hour format w/ …

javascript datetime time formatting
Convert time.Time to string

I'm trying to add some values from my database to a []string in Go. Some of these are timestamps. I …

string time go
Adding minutes to date time in PHP

I'm really stuck with adding X minutes to a datetime, after doing lots of google'ing and PHP manual reading, I …

php date time
Python time measure function

I want to create a python function to test the time spent in each function and print its name with …

python time callback
Why is 1/1/1970 the "epoch time"?

Why is 1 January 1970 00:00:00 considered the epoch time?

unix time epoch
How to multiply duration by integer?

To test concurrent goroutines, I added a line to a function to make it take a random time to return (…

go time