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
1
vote
1 answer

FAT date resolution timestamps on Windows

According to Wikipedia, FAT32 has a date resolution of 2 seconds for last modified time. This file time is obtainable in WinAPI and as a DateTime in C# using File.IO, both of which this concerns. What does the date resolution mean in practice? Does…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
1
vote
2 answers

Convert ulong FILETIME to datetime

My program receiving file time in ulong format and I have to convert it to DateTime format. So here is the function I wrote. public static DateTime fileTimeToDateTime(ulong fileTime) { long temp = (long)fileTime; DateTime dt1 =…
Nayana Adassuriya
  • 23,596
  • 30
  • 104
  • 147
1
vote
2 answers

Converting NTFS timestamps to FAT Timestamps

I'm writing a file transfer application, and I need to copy files from NTFS to FAT drives. Reading from http://support.microsoft.com/kb/127830, I understand that a time such as #11/29/2004 7:31:06 PM, 250ms# should get translated to #11/29/2004…
Clément
  • 12,299
  • 15
  • 75
  • 115
1
vote
1 answer

Get file modification times and names

I have a directory that contains multiple files and want to get the modification times and file names from there for modification times between set dates. I have tried =FILEDATETIME in Excel 2007 but it’s returning #NAME?, so I assume that…
user648244
  • 1,240
  • 7
  • 26
  • 41
0
votes
0 answers

How to resolve "Not a valid Win32 FileTime" error when getting data from a folder in Power Query?

I am using Excel 2016 and the latest version of Power BI to get data from a folder. However, I am encountering the following error message: "Expression.Error: Not a valid Win32 FileTime. Parameter name: fileTime Details: J:\PUBLIC\DRIVENAME". I am…
0
votes
1 answer

How do I access binary data via python registry?

The data in the registry key looks like: Name Type Value Data REG_BINARY 60 D0 DB 9E 2D 47 Cf 01 The data represent 8 bytes (QWORD little endian) filetime value. So why they chose to use binary rather than REG_QWORD is anyones guess. If…
Walter ZAMBOTTI
  • 301
  • 1
  • 2
  • 10
0
votes
1 answer

problem deploying symfony app , error deploying symfony app , ErrorHandler->handleError(2, 'filemtime(): stat failed for

Im trynig to deploy my symfony app on a web server with the hoster alwaysdata. My site works fine on localhost with wamp server , but after transferring all files on filezilla. what I have done : APP_ENV=prod I run composer update composer…
0
votes
1 answer

I am worried that this function to extract the year from FILETIME data need more testing

I forgot to add motivation for this question..the obvious solution of using FileTimeToSystemTime is horribly slow, this function is more than 3X faster that a slow API call. As part of a precision timing project, I developed VBA code to extract the…
photonblaster
  • 11
  • 1
  • 4
0
votes
0 answers

Get creation-time of image or video in windows with php

I have a bunch of image- and video-files and want to sort them by creation-date in Windows. In Windows-Explorer, I see a colum "date" which shows the correct date, all my files for testing are from 2019. But using php, it seems I'm not able to get…
Werner
  • 1,695
  • 3
  • 21
  • 42
0
votes
1 answer

FILETIME to/from ISO 8601 with Win32 API. Getting DST right?

Wrote something in .NET; it works well. Now I am trying to rewrite it as a shell extension with the Win32 API. Ultimately I want to convert FILETIMEs to and from ISO-8601 strings. This is doable without fuss, using GetTimeZoneInformation and…
sidbushes
  • 301
  • 1
  • 10
0
votes
1 answer

Python: creating dataframe with filename and file last modify time

i want to read file name in folder which i already did using file=glob.glob... function. and add in 'file_last_mod_t' column last modify file time. my part of…
sygneto
  • 1,761
  • 1
  • 13
  • 26
0
votes
1 answer

Ad accountexpires setting issue

This code in a console program works fine DateTime enteredDate = DateTime.Parse("2/2/2019 1:16:47 PM"); //change the time to 6pm enteredDate = enteredDate.Date.Add(new TimeSpan(18, 00, 0)); Debug.WriteLine($"Entered date :…
Gullu
  • 3,477
  • 7
  • 43
  • 70
0
votes
1 answer

How to correctly convert Unix time to FILETIME used by Win32

Microsoft offers the following function in its support article : // NOTE: this function is INCORRECT! void UnixTimeToFileTime(time_t t, LPFILETIME pft) { // Note that LONGLONG is a 64-bit value LONGLONG ll; ll =…
Andrei Belogortseff
  • 1,861
  • 3
  • 18
  • 26
0
votes
1 answer

Converting __int64 to FileTime

I have a code which is getting SystemTime as FileTime using uint64 currentUtcFileTime; GetSystemTimeAsFileTime((FILETIME*)¤tUtcFileTime); Now I want to convert this uint64 back to FILETIME.
Neha
  • 39
  • 6
0
votes
3 answers

In .Net, how do I convert between SystemTime and FileTime?

As per https://msdn.microsoft.com/en-us/library/windows/desktop/ms724290(v=vs.85).aspx, a file time is a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since 12:00 A.M. January 1, 1601 Coordinated Universal…
user1889116