Questions tagged [epoch]

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. This tag is *not* for epochs as used in neural networks/machine learning.

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.

It is used widely, not only in Unix-like operating systems, but also in many other computing systems and file formats.

It is neither a linear representation of time nor a true representation of UTC (though it is frequently mistaken for both), as it cannot unambiguously represent UTC leap seconds (e.g. December 31, 1998 23:59:60), although otherwise the times it represents are UTC.

Unix time may be checked on some Unix systems by typing date +%s on the command line.

1440 questions
-3
votes
1 answer

I'm using pandas dataframe and I need to convert an entire column of epoch time stamps to human time without using a loop

Currently i am using for loop which takes a lot of time : for i in range (0,len(df)): df['time1[i]']=(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(df.time[i]))) Can someone suggest a way to do it without a loop and faster?
-3
votes
2 answers

Epoch_time_convertion_issue

My server is using GMT time zone but my application is working on IST, so I am converting GMT to IST while saving to database.But when I am converting this saved IST into epoch time then it's adding 5 hours 30 minutes into the saved IST time. Is…
user4723351
-3
votes
1 answer

How to convert this kind of date to epoch format?

I have just made an HTML input which returns the following type of date : 2017-02-05T15:00 How can i input it in the epoch format ?
TotorAndMimine
  • 75
  • 1
  • 10
-3
votes
3 answers

convert epoch time into dd/mm/yy in a file

In a file I have n number of epoch times. I have to convert the each epoch time into dd/mm/yy format. eg: file1 content: 1 aaa 1322625862.408 2 bbb 1322625848.954 3 ccc 1322625843.908 4 ddd 1322625865.436 Now I want to convert this epoch time.
-3
votes
3 answers

How can I convert a epoch time stamp to a UTC format like 2014-06-25T14:38:52.359Z in PHP

I am looking to convert an EPOCH timestamp (like 1372190184) to a format 2014-06-25T14:38:52.359Z. I have tried the following code, but the format I get is different from what I need. $start = new DateTime(date('r', '1372190184')); $startDateText…
infernal_lad
  • 425
  • 1
  • 7
  • 13
-4
votes
2 answers

C or C++ code to get hour of day from epoch timestamp using time-zone

Possible Duplicate: Best way to convert epoch time to “real” date/time I need to write a small function in C/C++ which will take epoch time stamp and time-zone as input and return "hour" part of that time-stamp. Please help.
Amit
  • 614
  • 1
  • 8
  • 18
-4
votes
1 answer

Best way to convert date to epoch in perl

What is the best way to convert --> Mar 11 10:29:47 2021 GMT <-- into epoch on multiple platforms. Date::Parse module is not available by default on all platforms.
Alter16
  • 9
  • 5
-4
votes
1 answer

Generate epoch millis timestamp for each day for a month

I want to generate a data as epoch millis for each day for a month in Scala. If anybody has done this before, please help on it.
nilesh1212
  • 1,561
  • 2
  • 26
  • 60
-4
votes
2 answers

How to get today's 9am PST epoch in C#

I want to know how many seconds are passed since 1970/1/1 till today's 9am PST. How can I do that in C#? I need this in front end application, where every device can have different time zone. But in anyways, I need seconds elapsed from current day's…
-4
votes
1 answer

Convert epoch to local time in perl on windows

We are trying to convert the output received from the below code The current output is in this form…
Newbie
  • 1
  • 1
-4
votes
3 answers

What is so special about Unix time?

I don't understand the purpose of the Unix time / epoch, to my understanding the number of seconds elapsed since January 1st, 1970. This seems wholly arbitrary to me. Why not simply use a timestamp in the form of month, day, year?
-4
votes
2 answers

Convert double to mysql date format

In mysql, I had one table students and that table contains one column name as runtime and that contains values like 1381387683741, 1381387683739 etc. when I convert this using covertor it shows results Thu, 10 Oct 2013 06:48:03 GMT So my…
Neo-coder
  • 7,715
  • 4
  • 33
  • 52
-5
votes
2 answers

JavaScript Convert YYYY-MM-DD-HH-MM-SS to Epoch

I have a date as string like this: 2018-05-29-13-56-00 I need to convert this to epoch so I can make calculations with other dates. Does anyone have an idea on how to do that? Thank you!
C. Ubkcah
  • 273
  • 13
  • 33
-5
votes
2 answers

Turning timeInMills to a 24hour/Date

Is there any source code for turning the timeInMills to a 24hour/Date like from the messenger app. When the timeInMills is below 24 hour it will return like this 16:15 but when it is over 24hour it will return like this THU at 16:15. I am currently…
user8724610
-11
votes
2 answers

How to change miillisecond to Date Object in yyyy-MM-dd HH:mm:ss format

How to change milliseconds to Date object in yyyy-MM-dd HH:mm:ss format like 2017-04-12 23:14:52?
Nilendu Kumar
  • 63
  • 1
  • 1
  • 5
1 2 3
95
96