Questions tagged [timestamp]

The time (and date) stamp, usually of a file, when the event (or last change) occurred.

definition:

Wikipedia >> Timestamp

A timestamp is a sequence of characters or encoded information identifying when a certain event occurred, usually giving date and time of day, sometimes accurate to a small fraction of a second. The term derives from rubber stamps used in offices to stamp the current date, and sometimes time, in ink on paper documents, to record when the document was received. A common example of this type of timestamp is a postmark on a letter. However, in modern times usage of the term has expanded to refer to digital date and time information attached to digital data. For example, computer files contain timestamps that tell when the file was last modified, and digital cameras add timestamps to the pictures they take, recording the date and time the picture was taken.

TechTarget.com > what is: Timestamp

A timestamp is the current time of an event that is recorded by a computer. Through mechanisms such as the Network Time Protocol (NTP), a computer maintains accurate current time, calibrated to minute fractions of a second. Such precision makes it possible for networked computers and applications to communicate effectively. The timestamp mechanism is used for a wide variety of synchronization purposes, such as assigning a sequence order for a multi-event transaction so that if a failure occurs the transaction can be voided. Another way that a timestamp is used is to record time in relation to a particular starting point. In IP telephony, for example, the Real-time Transport Protocol (RTP) assigns sequential timestamps to voice packets so that they can be buffered by the receiver, reassembled, and delivered without error. When writing a program, the programmer is usually provided an application program interface for a timestamp that the operating system can provide during program execution.


Why is this important?

To quote from a recent question (on AskUbuntu): u1partial - and modification stamp on files

Modified date and time should not be changed unless the filecontent has changed, and should follow files through all kinds of copying.

62 questions
466
votes
6 answers

How can I change the date modified/created of a file?

Is there a way to change the date when a file was modified/created (which is shown in Nautilus or with the ls -l command)? Ideally I am looking for a command which can change the date/time stamps of a whole bunch of files to a certain amount of time…
snej
  • 4,661
408
votes
9 answers

How to see time stamps in bash history?

Is there any way I can see at what time the commands were executed from the bash history? We can see the order but is there any way I can get the time also? Bottom-Line: Execution time in the Bash history
Raja G
  • 105,327
  • 107
  • 262
  • 331
125
votes
3 answers

Copy a file and keep the same timestamp of the original file

I need to a copy file and after that I need to change the timestamp attributes as the original file. How can I do it with the terminal or any other way?
user829468
12
votes
1 answer

How to remove files modified between particular dates?

As in the topic: I would like to remove files in a directory that have been modified in a particular date range. How can I do this ?
Patryk
  • 9,416
11
votes
4 answers

What is a timestamp in Linux?

While reading about Linux I got the following: touch provides several options, but here is one of interest: The -t option allows you to set the date and time stamp of the file. To set the time stamp to a specific time: $ touch -t 03201600…
Anupam
  • 1,573
9
votes
5 answers

How can I preserve file modification times when copying to a NAS?

I recently installed a Synology DiskStation on my network. I mounted it from an Ubuntu 12.04.1 computer with the Browse Network button in Nautilus 3.4.2. It shows up as afp://randall@DiskStation.local/photo/ in Nautilus. So far, so good. I then…
Randall Cook
  • 4,155
  • 4
  • 19
  • 21
9
votes
1 answer

List of files modified between perticular time period

I am trying to get list of files modified between particular period of time as explain in this answer. I stored date and time in two variables [nn and nn1 (stupid naming)] and tried with find command. I got following error…
Vikram
  • 218
8
votes
4 answers

How can I change the filename timestamp?

I have dat files' names in chronological order: FileName_YYYY_MM_DD_HHMM.dat Is there any commands for adding 30 minutes to each timestamp?
5
votes
1 answer

Last access timestamp updated every 24 hours

The last access timestamp of my files is updated every 24 hours whenever I access an files. E.g. I type "ls" and if the last access timestamp of the file is older than 24 it is updated to the current date. Has anyone else the same phenomenon and…
Stefan
  • 51
4
votes
1 answer

Append current timestamp on files name from background running command

Following is command that I have used in bash script and it is run on background: sshpass -p prakash12 ssh -t -p $1 prakash@localhost './test_new_update_script.sh > /home/log/unit_update_output.log 2> /home/log/unit_update_error.log < /dev/null |…
Prakash H
  • 2,631
3
votes
1 answer

How to use chrony to synchronize timestamp on two computers

I need to compare results which come from two different laptops. Each laptop has a different set of sensors and in order to correctly compare them I need to have the same timestamp on both laptops. They are not connected to public internet, but if…
3
votes
1 answer

How to change the year to 2558?

I am a Buddhist, and if I cannot have a Buddhist calendar, I would at least like to have to Buddhist year, which is currently (in 2015) 2558. But due to the 2038 year problem, I'm not sure if I can do this and my system settings don't seem too happy…
user364819
3
votes
1 answer

How to know the time of execution of previous commands

I know that using the history command I can view my past commands, but: Is there a way to view the date and time of the execution of those commands? Or is that kind of information not saved? And if that sort of information is not saved, is there…
user364819
3
votes
1 answer

How to check a folder timestamp?

How to get file information inherent to time: such as last modification time, recent access time and so on. Also I would like to know if it is possible to check all the modification dates of a file or the times the file was modified and when.…
Pleo
  • 31
3
votes
0 answers

Timestamp appears to be wrong on some log files

When I use scp to remotely check my server logs, the "last changed" timestamp on some files appears to be set in the future. I've double checked the local time and timezone settings on both my server and the computer I'm logging in from and both are…
1
2 3 4 5