Questions tagged [timestamp]

A timestamp is the time at which an event is recorded by a computer system. The timestamp term may also refer to Unix Time or to the timestamp data type.

A timestamp is a sequence of characters, denoting the date and/or time at which a certain event occurred. A timestamp is the time at which an event is recorded by a computer, not the time of the event itself. In many cases, the difference may be inconsequential: the time at which an event is recorded by a timestamp (e.g., entered into a log file) should be very, very close to the time of the occurrence of the event recorded.

In some cases, a timestamp can be just the numbering of events, the use of a date_time format to store a timestamp is then not mandatory.

This data is usually presented in a consistent format, allowing for easy comparison of two different records and tracking progress over time; the practice of recording timestamps in a consistent manner along with the actual data is called timestamping.

Timestamps are typically used for logging events, in which case each event in a log is marked with a timestamp. In filesystems, timestamp may mean the stored date/time of creation or modification of a file.


Examples of timestamps

  • 2005-10-30 T 10:45 UTC
  • 2007-11-09 T 11:20 UTC
  • Sat Jul 23 02:16:57 2005
  • 1256953732

Standardization

ISO 8601 standardizes the representation of dates and times. These standard representations are often used to construct timestamp values.


References

13570 questions
4
votes
0 answers

Pushing back time stamp accordingly

met with some problem in getting started on this.. Currently my project receives data from serial port. But the data received looks like this Time >>>>>>>Unit no. 10:40:17:08 16 26.7 10:40:17:10 16 26.7 10:40:17:23 16 26.7 All…
Athena
  • 73
  • 1
  • 8
4
votes
2 answers

Timestamp out of range error on Postgres with a java.util.Date input

I am creating a Date object from a String in which the year is 2015123 and then trying to save it to Postgres. It's creating a Date object properly in the Java code but giving error timestamp out of range while saving it to the…
user1791574
  • 1,729
  • 2
  • 16
  • 30
4
votes
2 answers

How to convert tomorrows (at specific time) date to a timestamp

How can i actually create a timestamp for the next 6 o'clock, whether that's today or tomorrow? I tried something with datetime.datetime.today() and replace the day with +1 and hour = 6 but i couldnt convert it into a timestamp. Need your help
Fragkiller
  • 589
  • 2
  • 8
  • 21
4
votes
4 answers

Ruby - Convert formatted date to timestamp

I need to convert a date string to the Unix timestamp format. The string I get from an API looks like: 2015-05-27T07:39:59Z with .tr() i get: 2015-05-27 07:39:59 which is a pretty regular date format. Nonetheless, Ruby isn't able to convert it to…
romanzipp
  • 1,578
  • 3
  • 10
  • 13
4
votes
1 answer

Date parsing and timezone adjusting in pandas dataframes

I have about 800,000 rows of data in a dataframe, and one column of the data df['Date'] is string of time and date 'YYYY-MM-DD HH:MM:SS.fff', which doesn't have timezone information. However I know they are in New_York timezone and they need to be…
user6396
  • 1,832
  • 6
  • 23
  • 38
4
votes
2 answers

Convert Timestamp in milliseconds to Timestamp in Seconds

Given a timestamp in milliseconds, i want to convert it to an timestamp in seconds. I want to do it in java
Stefanos13
  • 129
  • 1
  • 1
  • 11
4
votes
4 answers

GStreamer timestamps (PTS) are not monotonically increasing for captured frames

I wrote some code to capture frames from a webcam using GStreamer 1.0 (PyGST). It is important for me to know the exact time of capture. For this, I set the v4l2src property do-timestamp, and I use appsink to write the buffer PTS to a text…
kalleknast
  • 301
  • 2
  • 3
  • 10
4
votes
1 answer

differences between subsetting POSIXlt and POSIXct in R

DATA v1 <- c("2015-01-05 15:00:00", "2015-01-05 15:45:00", "2015-01-05 15:00:30") OPERATIONS v2 <- strptime(v1, '%Y-%m-%d %H:%M:%S') str(v2) POSIXlt[1:3], format: "2015-01-05 15:00:00" "2015-01-05 15:45:00" "2015-01-05 15:00:30" v3 <- v2[!v2$min] …
jpinelo
  • 1,414
  • 5
  • 16
  • 28
4
votes
3 answers

Unique Linux filename, sortable by time

Previously I was using uuidgen to create unique filenames that I then need to iterate over by date/time via a bash script. I've since found that simply looping over said files via 'ls -l' will not suffice because evidently I can only trust the OS…
slumtrimpet
  • 3,159
  • 2
  • 31
  • 44
4
votes
7 answers

C# Getting Just Date From Timestamp

If I have a timestamp in the form: yyyy-mm-dd hh:mm:ss:mmm How can I just extract the date from the timestamp? For instance, if a timestamp reads: "2010-05-18 08:36:52:236" what is the best way to just get 2010-05-18 from it. What I'm trying to…
sooprise
  • 22,657
  • 67
  • 188
  • 276
4
votes
2 answers

Insert timestamp with JdbcTemplate in Oracle database ( ORA-01858 )

I've read a lot of stuff about this error, and still not found the mistake. I'm using JdbcTemplate to insert a row in some table with some timestamp column I'm pretty sure the timestamp is the problem, as if delete from the insert it works fine) My…
elcadro
  • 1,482
  • 3
  • 21
  • 45
4
votes
4 answers

Parse timestamps containing different lengths Python

I have 180,000 rows of timestamps which I would like to parse into a datetime format like: YYYY-MM-DD HH:MM:SS Below are the timestamps (note lack of leading zeros in first 9 hours): 19-May-14 3:36:00 PM PDT 19-May-14 10:37:00 PM PDT I have been…
enmyj
  • 371
  • 4
  • 14
4
votes
1 answer

PDFBox 1.8 - Signing PDF Document using TSA (Time Stamp Autority)

I'm able to digitally sign a PDF document using PDFBOX 1.8.5 thanks to this excellent sample, provided within PDFBOX. https://github.com/apache/pdfbox/blob/1.8/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateSignature.java When…
Romain
  • 51
  • 1
  • 2
4
votes
1 answer

What is timestamp in VS modules debug window?

What is timestamp in VS modules debug window? Is it Created timestamp? Modified ? Or signed timestamp I changed the timestamps of a dll and still its showing something else not able to figure it out what exactly is it?
anand
  • 11,071
  • 28
  • 101
  • 159
4
votes
2 answers

LINQ to SQL disconnected updating object from different data context

Link I'm using ASP.NET with C# and trying to use linq to sql to update a data context as exhibited on the blog linked above. I created the timestamp field in the table just as stated and am using the following method: private void…
Marty
  • 43
  • 2
  • 3