Questions tagged [filetime]

Use this tag for questions related to Windows FILETIME data structure.

FILETIME is a Windows time 64-bit structure representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).

92 questions
0
votes
1 answer

WinAPI to format FILETIME as a localized string with date and/or time

I'm looking for a low-level WinAPI to format date-time from FILETIME to a localized string with an output of a date, time, or date and time together. By reversing the MFC's COleDateTime I was able to find VarBstrFromDate function that "kinda" works.…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
0 answers

Powershell or cmd to get filetime/windowstime of a file in windows?

I think I have gotten myself confused here, I'm trying to get the creation time of a file on windows machine and convert this to windowstime, which I think is actually filetime? Looking at this seems to tell me differently…
Grimlockz
  • 2,541
  • 7
  • 31
  • 38
0
votes
2 answers

PHP filemtime() returning 1969-12-31 - cant find issue

I am building a cron job that scans a directory of images and resizes anything over 800 pixels wide. I also only want it to enter into the resize if the image was uploaded that day so I tried to use filemtime() but I keep getting 1969-12-31 back. I…
dc dalton
  • 63
  • 1
  • 11
0
votes
1 answer

write time on FTP server is very off

im trying to compare file write times between a local file and a file on an ftp server. the file times on the local machine work and it makes sense, but when I look at the file on the ftp server it shows two different times, via windows explorer and…
TheFuzz
  • 2,607
  • 6
  • 29
  • 48
0
votes
1 answer

How to detect if file is completly copied PHP

i have tried serval ways for how to detect if file is not yet complete and is still being copied. but $filemtimeNOW = date("F d Y H:i:s.", filemtime($tempPath."files/". "test.csv")); sleep(20); $filemtimeLATER = date("F d Y…
inventor
  • 55
  • 2
  • 3
  • 10
0
votes
1 answer

FILETIME manipulations in C# - achieving same result only using DateTime

I have following situation. I have C++ code 1) SystemTimeToFileTime(&st, &m_Time) Before above call st is assembled by parsing value from string and assigning to its members manually (please see paragraph about that below) - but only year, month,…
user5462062
0
votes
1 answer

How to download file with correct timestamp?

Using WebClient, how can I download a file from a FTP server with the filetime from server? using (WebClient client = new WebClient()) { client.DownloadFile("ftp://ftp123.abc.com/xyz/file.txt", "file.txt"); } The code above creates a new file,…
joe
  • 8,344
  • 9
  • 54
  • 80
0
votes
1 answer

Cast uint64_t to FILETIME

I'm trying to get byte array from file, interpret it like uint64_t and then cast this uint to FILETIME After googling around and debugging a bit I've stuck at following wrong working code. uint64_t win_filetime =…
im_infamous
  • 327
  • 1
  • 3
  • 17
0
votes
0 answers

Modification time of online files in OneDrive folder

As you know, Windows supports offline/online files now. In the other words, file content can be hosted in cloud, but the file info is hosted on a local machine and apps thinks that the file is actually here. However I found a problem here. I have…
crea7or
  • 4,421
  • 2
  • 26
  • 37
0
votes
1 answer

Get the oldest file in a directory

my problem is that I want to store the five oldest files from a directory in a list. Since the software should be safe against time changes done by the user I'm looking for a possibility to extract this information without using the file time. Is…
NouGHt
  • 31
  • 3
0
votes
1 answer

Delphi overwrite file and wrong modified date time

I'd like to get a file last modified time in Delphi. Normally something like FileAge() would do the trick, only the problem is: if I overwrite *File A* with File B using CopyFile, File A's modified date is not updated with current overwrite time as…
TheDude
  • 3,045
  • 4
  • 46
  • 95
0
votes
3 answers

How to create FILETIME in Win32?

I have a value __int64 that is a 64-bit FILETIME value. FILETIME has a dwLowDateTime and dwHighDateTime. When I try to assign a __int64 to a FILETIME I get a C2440. How do I assign the __int64 to the FILETIME? Or how do I split the __int64 so that…
Mike
-1
votes
1 answer

Force browser to get last version of certain sources (CSS, JS, etc.)

I would like, when someone is visiting my website, to make sure the browser has the last version of my files CSS, JS, etc. The idea I came with is to add an extra reference on my links: Instead of using