Top "Epoch" questions

Unix time, or POSIX time, is a system for describing points in time, defined as the number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds.

How can I convert a Unix timestamp to DateTime and vice versa?

There is this example code, but then it starts talking about millisecond / nanosecond problems. The same question is on MSDN, …

c# datetime unix epoch data-conversion
How can I convert a datetime object to milliseconds since epoch (unix time) in Python?

I have a Python datetime object that I want to convert to unix time, or seconds/milliseconds since the 1970 epoch. …

python datetime epoch
Convert UTC Epoch to local date

I have been fighting with this for a bit now. I’m trying to convert epoch to a date object. …

javascript date utc epoch
Convert python datetime to epoch with strftime

I have a time in UTC from which I want the number of seconds since epoch. I am using strftime …

python datetime utc epoch strftime
Android Get Current timestamp?

I want to get the current timestamp like that : 1320917972 int time = (int) (System.currentTimeMillis()); Timestamp tsTemp = new Timestamp(time); String …

java android kotlin timestamp epoch
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
In Python, how do you convert seconds since epoch to a `datetime` object?

The time module can be initialized using seconds since epoch: >>> import time >>> t1=time.…

python datetime date time epoch
How do you convert epoch time in C#?

How do you convert Unix epoch time into real time in C#? (Epoch beginning 1/1/1970)

c# time epoch
How to convert a string Date to long millseconds

I have a date inside a string, something like "12-December-2012". How can I convert this into milliseconds (long)?

java android epoch milliseconds date-conversion
How do I get the unix timestamp in C as an int?

I would like to get the current timestamp and print it out using fprintf.

c unix timestamp epoch