Skip to main content

Questions tagged [timestamp]

The time at which an event is recorded by a computer.

Filter by
Sorted by
Tagged with
111 votes
3 answers
183k views

How can I copy a file in Unix without altering its last modified time?

If I copy some file from some place to another using cp, the timestamp on the copied file is set to the time of the copy. Is there some way to avoid this? I need to copy files without altering their ...
Lazer's user avatar
  • 17.8k
101 votes
5 answers
289k views

How can I change the timestamp on a file? [duplicate]

Possible Duplicate: How to modify timestamp in a dll or exe? Windows equivalent of the Linux command 'touch'? How can I set the timestamp for a file via the command-line to a specific date? My ...
Joseph Hansen's user avatar
84 votes
2 answers
311k views

How to check all timestamps of a file?

Is there a command in Linux to check all timestamps of a file? I'm trying to see the last modified, created, and touched dates on the file.
Anthony Miller's user avatar
43 votes
6 answers
43k views

Determine when Windows was installed on a computer

Is it possible to check the date when Windows was installed on a PC and if so how?
Octávio Filipe Gonçalves's user avatar
39 votes
4 answers
99k views

How to display Unix time in the timestamp format?

I'm looking for a way to display my time in Debian Linux as a timestamp, e.g. 1279628325 I can't find any options to do that with the date command. Any ideas?
user32433's user avatar
  • 447
38 votes
1 answer
25k views

Why is cat not changing the access time?

The second call to cat a file does not update the access time. I was expecting the access time to be updated ever time a file contents gets displayed. I see the same behaviour if I open the file in ...
nelaaro's user avatar
  • 13.7k
26 votes
2 answers
5k views

What is this 14-digit time format from Windows registry?

Microsoft Office 365 saves information in the registry about what time it last searched/downloaded/applied updates in a format like this: Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\office\ClickToRun\...
Cpt.Whale's user avatar
  • 8,357
25 votes
5 answers
20k views

What is the "Date" column in Windows 7 explorer? It matches no date column from Windows XP explorer

I can't get myself to understand what the default "Date" column in Windows 7 Explorer is. It's not the creation date really and it's not the modified date ... What is it? Anyone knows what Microsoft ...
Notitze's user avatar
  • 1,156
22 votes
4 answers
47k views

How to compare file timestamps in bash?

How do I compare the timestamp of two files? I tried this but it doesn't work: file1time=`stat -c %Y fil1.txt` file2time=`stat -c %Y file2.txt` if[$file1time -gt $file2time]; then doSomething fi I ...
newcoderintown's user avatar
22 votes
3 answers
25k views

Are there any negative effects of disabling the Last Access timestamp?

In Windows, you can disable the last accessed timestamp by setting NtfsDisableLastAccessUpdate to 1, for instance by executing this from the command line (the computer must be restarted before it ...
Eric L's user avatar
  • 1,452
21 votes
2 answers
62k views

FFmpeg: recreate timestamps without reencoding

I have an MP4 file containing H264 video (25 FPS). Some timestamps are not correct (for reasons...). Can I process the file and have only the timestamps regenerated without reencoding? I've tried this ...
user avatar
20 votes
1 answer
38k views

Preserve ctime with SCP

How can I copy a file using SCP while preserving ctime (modification time)? I have a folder on my Mac (OS 10.8), and the results of ls -l and ls -lc are the same. $ ls -l total 0 drwxr-xr-x 9 ...
Elliott B's user avatar
  • 1,235
18 votes
5 answers
21k views

Are Windows file timestamps timezone aware?

I have a file that was modified either before or after it was sent to me. However, it was created in a different time zone, so if the modification date is in the timezone of the sender, he was the ...
bastibe's user avatar
  • 3,892
17 votes
3 answers
7k views

Is it possible to determine when a NTFS partition was created?

We have a client where it would be very useful to determine WHEN a drive was a initialized or an NTFS partition created. Is there a timestamp value somewhere? If anyone could shed any advice it ...
cjones26's user avatar
  • 735
15 votes
5 answers
21k views

What is the easiest way to get a yyyy-mm-dd hh:mm:ss timestamp hotkey on the Mac?

On Windows I use the PSPad editor which has a nice ALT-D timestamp which you can edit the format of, e.g. yyyy-mm-dd hh:mm:ss. When working outside an editor, e.g. Google Docs, I have Autohotkey ...
Edward Tanguay's user avatar
15 votes
1 answer
21k views

Avoid errors from tar failing to restore directory permissions

I observe the following behavior with both tar 1.26 and 1.27.1: $ mkdir a b a/diffowner $ sudo mkdir b/diffowner $ sudo chmod a+w b/diffowner $ echo foo > a/diffowner/foo $ tar -C a -cvf test.tar ...
MvG's user avatar
  • 1,489
15 votes
1 answer
7k views

List full timestamps of files in a tarball

I have a large tar archive and want to see the exact (nanosecond) timestamps that are stored for each file in the archive. In case it's relevant, the tarball is in POSIX-2001 format (tar --format=...
Mechanical snail's user avatar
12 votes
3 answers
18k views

Add timestamp to image from Linux command line

I have a folder full of images. I'm trying to add a timestamp onto the image itself, for every image, based on the date that the file was created. Is this possible? I've read this post here, but it ...
Andrew's user avatar
  • 515
12 votes
2 answers
25k views

How to mv a folder in Linux retaining its mtime?

I am using CentOS 5.5 and would like to move a large amount of folders within one volume, retaining their mtime. The best solution I could find is like this: cp -p -r source/data target/ rm -rf ...
Roman Zenka's user avatar
12 votes
1 answer
19k views

Open Office Calc: Convert a date to timestamp

I have a column with dates in M/D/Y like this: 8/8/2007 8/9/2007 8/10/2007 8/13/2007 8/14/2007 8/15/2007 8/16/2007 I would like to convert them to a unix timestamp (in a new column). Would anyone ...
xtrimsky's user avatar
  • 493
11 votes
1 answer
29k views

How to include the second in Outlook "received" time? (hh:mm:ss)

In Outlook, the timestamp of the "received" column in Inbox View is rounded to the minute. This is annoying, since we need to know the second. And the correct minute number. In the options, one can ...
Jonas's user avatar
  • 400
11 votes
1 answer
11k views

How can I see a timestamp for when a command was executed using history?

I'd like to check at what time/date a command in bash history was executed. Is this possible?
Jonathan Day's user avatar
  • 1,611
7 votes
3 answers
28k views

How to fix incorrect dates in Apple Mail after migrating from IMAP to Exchange?

My company has just transitioned from an IMAP provider to a Microsoft Exchange server. As part of the transition, I moved all of my old messages from the various IMAP folders into corresponding ...
Charles's user avatar
  • 365
7 votes
3 answers
18k views

What is the accuracy of file creation or modification dates?

Due to some court cases in my jurisdiction, I often see court-appointed experts determining the creation date of a document. Is it really possible to do this via software methods? How could one prove ...
victor's user avatar
  • 71
7 votes
3 answers
11k views

How to fix GMail time stamps in Outlook?

One of my email accounts is hosted at an ISP with unreliable IMAP support, and I can't change it. Fortunately, I have my personal email set up on Google Apps for Domains, so I created another GMail ...
SWB's user avatar
  • 170
6 votes
3 answers
21k views

ZIP file with metadata?

Is there any standard way to store metadata (e.g. timestamps) inside ZIP files, along with the files? What program would I need to use in order to do this?
user541686's user avatar
  • 23.7k
6 votes
3 answers
8k views

In Chrome how I can see a webpage's time/date info?

In IE I can right-click, select Properties and see the page's date (but not time). I don't see any similar feature in Chrome. And how about Firefox.
Nissim Nanach's user avatar
6 votes
1 answer
8k views

Why are Skype messages showing up out of order?

Recently, I saw a one-line Skype message dated 7:36 AM. I saw and responded to this message with one line at 9:39 AM. The other person wrote three lines back again in the early afternoon, which I did ...
WBT's user avatar
  • 1,872
5 votes
2 answers
15k views

time stamp XXXX s in the future issue - touch command (Linux)

When I untar a tar.gz file on Debian Lenny, I get the such outputs: tar: openssl-1.0.1e/apps/openssl.cnf: time stamp 2013-02-11 15:26:04 is 1360584537.139999998 s in the future openssl-1.0.1e/apps/...
Angs's user avatar
  • 934
5 votes
1 answer
22k views

Want timestamp in CMD for every command

So, I have opened a Windows CMD and I am running one build script command in it. Problem is, sometimes(honestly, often) I forget to run this build script after doing changes in my code. If there was ...
Pratik's user avatar
  • 163
5 votes
1 answer
3k views

Touch Change Access, Modify AND Change

I know you can use "touch" to change the access and modify timestamps of a file using the "-t" flag but is it possible to change the "change" timestamp. If so how would I go about doing this? Thanks ...
Phillip's user avatar
  • 51
5 votes
2 answers
29k views

batch - File last modification time with seconds

I want to know when a file has been modified for the last time. I can get these infos using the following batch script: FOR %%i IN (myfile) DO SET modif_time=%%~ti The problem is that I need the ...
user3133076's user avatar
5 votes
3 answers
5k views

Is there a way to tell the WinMerge to exclude date/time comparison?

I have several log files with content like this: 2022-03-13 21:16:46.367972: I This is a test1 Is there a way to tell the WinMerge to exclude date/time comparison without removing a timestamp with a ...
Andrey's user avatar
  • 171
5 votes
3 answers
18k views

ffmpeg filter to add timestamp on video

I have a problem displaying the timer on the video. I have consulted a few examples, but it does not show success. Help me fix it.
Lea... FFmpeg's user avatar
5 votes
6 answers
15k views

(Batch) converting a video while keeping the original time stamp/creation date

I need an easy way to convert videos to h264 while keeping the original creation date. Right now I'm doing it manually (encode, then edit the date), but it's a super boring task to do when I have 10+ ...
Magnetic_dud's user avatar
  • 3,602
5 votes
1 answer
4k views

How can the modification date of a file be in the future?

Whenever I change a file on my (Scientific Linux 6, 64bit) machine, its modification date is set in the future: bash$ touch new.txt && stat -c %y new.txt && date 2016-09-19 12:33:08....
Zollern's user avatar
  • 53
5 votes
1 answer
6k views

MP4 video - Editing Creation Date and Other Metadata

I wish to find out if it is possible to edit the creation date and time of an MP4 video file. I have attempted to do so using ffmpeg with the syntax listed below. ffmpeg -y -i "22.mp4" -c copy -...
n00b2120's user avatar
5 votes
2 answers
640 views

How to prove a file was not tampered?

So for one of my programming assignments, I used the turnin command as opposed to a class-specific binary that I was supposed to use. I didn't realize this until I found out that my assignment wasn't ...
Dan's user avatar
  • 51
5 votes
1 answer
18k views

How to modify timestamp in a dll or exe?

Is there any tool to modify timestamp in a dll or exe?
Alien01's user avatar
  • 183
4 votes
2 answers
640 views

How can I create a file with invalid Windows timestamps?

I'd like to create a file with an invalid created/modified/accessed timestamp. To be invalid it should be a date and time before 12:00 midnight January 1, 1601 C.E. UTC
Tom Robinson's user avatar
  • 2,460
4 votes
1 answer
4k views

How to make Windows Explorer file properties show exact times?

When I bring up file properties, I don't want my OS to round off values for me. But to my surprise, I click on a file, open properties, and see: Created: Today, June 11, 2015, 4 hours ago Modified:...
Robert Kerr's user avatar
4 votes
1 answer
6k views

Copying the timestamp from one file to another (using PowerShell 2.0 on Windows-7)

On my Android phone, it was configured to save pictures to the Phone-memory. I wanted to free up some memory in the phone, and since I have a 16GB uSD card, I: 1) copied all the pictures to my ...
Kevin Fegan's user avatar
  • 4,887
4 votes
1 answer
2k views

Finding the newest file in a directory with a million files

I'm currently using ls -t | head -1 to get the name of the newest file. But it takes a long time because my directory has a million files. I guess a chunk of time is lost unnecessarily in ls -t when ...
mak's user avatar
  • 41
4 votes
1 answer
834 views

emacs - repeat task max number of times

I need to schedule a task such that it repeats everyday, for a max number of days. If I don't do the task one day, the tasks should accrue, and not simply disappear. For instance, I need to finish a ...
Kyle L's user avatar
  • 2,349
4 votes
0 answers
2k views

Time of extracted frame from video using FFMPEG

I'm using the command ffmpeg -i video.webm -vf fps=1 thumb%04d.jpg to get one frame every second. However, I cannot figure out way to get the exact timestamp of an extracted frame. I need that ...
user929951's user avatar
4 votes
2 answers
782 views

Is there a tool that can let me visualise timestamps by day/week/month?

On our website we record thousands of events in tables each with a unique timestamp. Is there a tool that can plot for me the number of timestamps that fall within a day, week, or month, on a graph a-...
chrism2671's user avatar
  • 1,599
3 votes
1 answer
440 views

What's the significance of 41 Years?

In a popular online video game (World of Warcraft) there's a friends list displaying how long since each friend is online. Recently, there's been a bug where many friends show as being offline for 41 ...
Jim's user avatar
  • 152
3 votes
1 answer
3k views

Are file access times not properly maintained in Mac OS X?

I'm trying to determine how file access times are maintained by default in Mac OS X, as I'm trying to diagnose some odd behaviour I'm seeing in a new MBP Unibody (running Snow Leopard, 10.6.2): The ...
Ether's user avatar
  • 1,167
3 votes
3 answers
4k views

How to sync file times from one directory tree to another

I have two file trees. The first one consist of original files. The second one is a duplicate but lacking correct file timestamps, they are all set to the last duplication date. Is there a clean and ...
dronus's user avatar
  • 1,908
3 votes
1 answer
540 views

How can all files on my drive suddenly have modified timestamps set to 1 hour newer than a week ago?

I regularly back up most of my files using Robocopy using the mirror function. I haven't noticed anything odd in the past days, since I most frequently backup to another SSD. But to my horror, when ...
Hunnicatt's user avatar

1
2 3 4 5