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
-2
votes
2 answers

how to get GMT timestamp from DatePicker?

I have a DatePicker element ("DPstart"). I want to save the timestamp (in milliseconds) of midnight at the string "newStartDate", Without regard to the time zone of the user. How can I do this? DatePicker DPstart = (DatePicker)…
E.S
  • 1
  • 6
-2
votes
2 answers

Error in elapsed time since modification of file using "DateTime"

I am trying to clean up a rather large file system. I use the stat function to obtain the modification time of each file. According to perldoc -f stat, the tenth element of the returned list is the last modified time in seconds since the epoch. I…
Mose
  • 541
  • 1
  • 11
  • 27
-2
votes
1 answer

Javascript Unix timestamp different on each device

Hey I noticed something weird while developing an app that is supposed to run synchronized to a server. JavaScript's unix timestamp is different on each device! :O The experiment: I open the chrome dev console and did 2 commands: new…
ErikBrandsma
  • 1,661
  • 2
  • 20
  • 46
-2
votes
2 answers

Transform a String in unix time java android

At the moment I have a String with the folowing format : 'DD/MM/YYYY' , and I'm willing to store this in a SQLite database as a date. Since it is impossible to store it as a datetime, I've decided Integers would be the best choice, and someone told…
JohnnyBgud
  • 107
  • 4
-2
votes
2 answers

How Can I Convert 10131520 Into Unix Epoch Time In C?

I have a string 10131520 that I am trying to convert to Unix Epoch time in C. If the numbers were separated like 10-13-1520 I could use something like strptime() but I'm having trouble because there are no deliminators. I was thinking about perhaps…
esx0001
  • 161
  • 1
  • 7
-2
votes
3 answers

Converting long to int in Java

I'm using System.currentTimeMillis() for getting seconds since the epoch. This is an example. long enable_beacon_timestamp = System.currentTimeMillis()/1000; println(enable_beacon_timestamp); println(int(enable_beacon_timestamp)); …
progloverfan
  • 155
  • 2
  • 13
-2
votes
1 answer

How do I get the milliseconds from epoc till starting of today's? using swift

var timeIntervalSince1970: NSTimeInterval {get} I just hope someone can help me with this.
Ben
  • 1
  • 1
-2
votes
2 answers

Why don't we use full 32 bits to store 136 years since the Epoch?

I've seen it many times, e.g. on UNIX, in MySQL timestamp etc.: the Epoch starts at 1970-1-1, but the maximum recordable year is 2038. Now let me count: 2^32/60/60/24/365+1970 2106 So if we used full 32 bits, we would naturally get to year 2106…
Tomas
  • 57,621
  • 49
  • 238
  • 373
-2
votes
2 answers

Day month and year algorithm using Gettimeofday() in C

Im required as part of a lab to devise a way to calculate the current month day and year. I'll be using the gettimeofday() function which gives me the number of seconds since january 1 1970. I know that there are functions that will do the…
PresidentRFresh
  • 93
  • 1
  • 2
  • 10
-3
votes
1 answer

Does retraining the ML with the same dataset count an epoch?

I developed the ML for my research, and it needs to be trained with a large amount of data, actually I have to train it for 100 epochs. But, my macbook (m2 13") can't hold it, and also I have to use my laptop for studying, so I can't leave it train…
-3
votes
1 answer

Failing to convert from epochmili to string

This the epoch mili - 1526581800000 The code which am using for conversion is - LocalDateTime localDateTime =…
-3
votes
1 answer

search records of a user from last 30 days dynamodb

my dynamodb structure is somehow for example my PK and SK is like PK = USR#123ACT#234 and SK = AYT# and my global index are like GSi3pk = ACT#234 and GSI3SK = now case is using global index I want to get data of last 30…
-3
votes
1 answer

Converting PostgreSql timestamp query to MS SQL/Azure SQL

I'm currently in the process of converting some basic sql scripts from Postgresql to Azure Sql. I'm newbie to sql, but I really can't understand epoch/unix time in Azure SQL / SQL Server. My application is using bigint epoch time as event timestamp…
-3
votes
2 answers

How to convert GMT date to UNIX time in golang?

I need to convert a GMT date like (Mon, 23 Dec 2019 18:52:45 GMT) to time.Time.Unix in Go I've tried to parse it before and then convert it to Unix format. But it's not so clean what are the predefined layouts in…
Alejandro Blasco
  • 1,295
  • 2
  • 20
  • 24
-3
votes
2 answers

Not able to convert date to epoch time

This is my sample code String dt = "Oct 24 2019 12:00:00.000 AM UTC"; String dt1="Oct 24 2019 11:59:59.000 PM UTC"; SimpleDateFormat df = new SimpleDateFormat("MMM dd yyyy HH:mm:ss.SSS aa zzz"); Date date = df.parse(dt); …
Divyashree R
  • 81
  • 1
  • 2
  • 9
1 2 3
95
96