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
20
votes
7 answers

Does the windows FILETIME structure include leap seconds?

The FILETIME structure counts from January 1 1601 (presumably the start of that day) according to the Microsoft documentation, but does this include leap seconds?
Lawrence D'Anna
  • 2,998
  • 2
  • 22
  • 25
18
votes
3 answers

Latest possible FILETIME

I'm creating a mock object to test my application so that it works at the boundary conditions of time. I'm using FILETIME in the Windows SDK. The link shows the earliest time which is January 1, 1601 (I'm assuming midnight 00:00:00 and both…
xubia
  • 643
  • 9
  • 26
15
votes
5 answers

not being able to convert from FILETIME (windows time) to dateTime ( I get a different date )

Most of the files I read get the right time when using the following method to convert: // works great most of the time private static DateTime convertToDateTime(System.Runtime.InteropServices.ComTypes.FILETIME time) { long highBits =…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
8
votes
1 answer

Modifying the date and time values using SYSTEMTIME, FILETIME, and ULARGE_INTEGER

I am making a program, in C++ using Visual Studio 2005, that needs to create a watermark with the time on a set of images. These images are taken from a video that were processed at certain time intervals. What I am trying to do is to modify the…
Seb
  • 3,414
  • 10
  • 73
  • 106
8
votes
1 answer

Python: Get a list of all files and folders in a directory, the time of creation, the time of last modification. System independent solution?

This is a challenge as well as a question: I have a folder of data files. I want the following list of lists of information: Filename: Created: Last modified: Information = [ [datafile1, Mon Mar 04 10:45:24 2013, Tue…
user2141019
7
votes
3 answers

PHP last modification time of the remote file

I want to get last modification time of the remote file. I am using this code I found here on stackoverflow $curl = curl_init(); curl_setopt($curl, CURLOPT_URL,$url); //don't fetch the actual page, you only want headers …
kukipei
  • 631
  • 2
  • 8
  • 32
7
votes
2 answers

PowerShell - Convert FileTime to HexString

After searching the interwebs, I've managed to create a C# class to get a FileTimeUTC Hex String. public class HexHelper { public static string GetUTCFileTimeAsHexString() { string sHEX = ""; long ftLong =…
C Sharp Conner
  • 378
  • 2
  • 11
6
votes
2 answers

Datetime to filetime (Python)

Any links for me to convert datetime to filetime using python? Example: 13 Apr 2011 07:21:01.0874 (UTC) FILETIME=[57D8C920:01CBF9AB] Got the above from an email header.
jeremy
  • 71
  • 1
  • 2
6
votes
3 answers

Convert Unix/Linux time to Windows FILETIME

I am once again going from Windows to Linux, I have to port a function from Windows to Linux that calculates NTP time. Seems simple but the format is in Windows FILETIME format. I sort of have an idea what the differences are but so far I can not…
Dixon Steel
  • 1,021
  • 4
  • 12
  • 27
5
votes
4 answers

python convert filetime to datetime for dates before 1970

I need to convert filetime to datetime. I am using this code filetime.py, from here as mentioned in this thread Datetime to filetime (Python). In the code EPOCH_AS_FILETIME = 116444736000000000 # January 1, 1970 as MS file…
Echo
  • 667
  • 3
  • 8
  • 19
5
votes
3 answers

c++ \ Convert FILETIME to seconds

How can I convert FILETIME to seconds? I need to compare two FILETIME objects.. I found this, but seems like it doesn't do the trick... ULARGE_INTEGER ull; ull.LowPart = lastWriteTimeLow1; ull.HighPart = lastWriteTimeHigh1; time_t…
user1025852
  • 2,684
  • 11
  • 36
  • 58
4
votes
1 answer

How to convert a windows FILETIME to a std::chrono::time_point in C++

I'm looking for a way to convert a Windows FILETIME structure to a std::chrono::time_point< std::chrono::file_clock> so that I can build a difference between two file times and express that duration f.e. in std::chrono::microseconds. EDIT: Here is a…
ridilculous
  • 624
  • 3
  • 16
4
votes
1 answer

How to convert FILETIME to Date in VBA?

I'm trying to write a module that will take a Hex FILETIME extracted from a registry key and parse that into a readable date in VBA. I have the following REG_BINARY key extracted from the registry: 36 D0 56 2E 14 52 D5 01 00 60 EE 78 DE FF FF FF C4…
Hooplator15
  • 1,540
  • 7
  • 31
  • 58
4
votes
1 answer

FileTime to string

I'm reading some Microsoft FileTime values, stored as a long, and I'm trying to convert it into a human readable date. For instance, the value 131733712713359180 converts to: Wednesday, June 13, 2018 1:47:51pm. This was done using the online tool,…
Tony
  • 3,587
  • 8
  • 44
  • 77
4
votes
3 answers

How to convert DATETIME to FILETIME value in T-SQL?

I need to convert a SQL Server DATETIME value to FILETIME in a T-SQL SELECT statement (on SQL Server 2000). Is there a built-in function to do this? If not, can someone help me figure out how to implement this conversion routine as a UDF (or just…
Alek Davis
  • 10,628
  • 2
  • 41
  • 53
1
2 3 4 5 6 7