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
3
votes
1 answer

How do you split a 64bit number into high 32 bits and low 32 bits in VBScript?

I've got a 64 bit number in VBScript (WScript) that I want to divide into 32 bit high part and low part. The number is represented as a string (in base 10). The largest supported primitive is a 53 bit double, so I can't do a usual modulus op to get…
Crazy Chenz
  • 12,650
  • 12
  • 50
  • 62
3
votes
3 answers

PHP file modified time use GMT offset setting to report correct time

I'm currently reporting file modified time like so: $this->newScanData[$key]["modified"] = filemtime($path."/".$file); $modifiedtime = date($date_format." ".$time_format, $this->newScanData[$key]["modified"]); To me I thought there was nothing…
Scott
  • 3,967
  • 9
  • 38
  • 56
3
votes
1 answer

Obtain the last modified date of a file with MILLISECONDS?

I am trying to get the date and time (last modified) of some files from a folder. I managed to get the date and hour/minutes/seconds but I can not get the milliseconds. I already tried formatting the column in all the ways possible. I only get 0…
MisterA
  • 153
  • 5
  • 16
3
votes
3 answers

Convert datetime back to Windows 64-bit FILETIME

I would like to create network timestamps in NT format. I've been able to convert them to readable time with this function: NetworkStamp = "\xc0\x65\x31\x50\xde\x09\xd2\x01" def GetTime(NetworkStamp): Ftime =…
user1473508
  • 195
  • 1
  • 5
  • 15
3
votes
2 answers

Convert Date To FileTime in VB6

I am creating a VB6 application which needs to query an existing database, and I need to do a filter by date. The database stores the dates in Windows File Time format, i.e 130159451238571322 which is 2013-06-17 12:18:43.857 Is there a way in VB6 to…
Gavin Coates
  • 1,366
  • 1
  • 20
  • 44
3
votes
2 answers

SYSTEM Time, Local time, File time and normal time

Just want to make sure one thing. In a windows machine (either a desktop system or maybe a device like Windows Phone), if user changes the display time (maybe adjust time zone, or just change date/time in control panel), will that also changes the…
Allan Jiang
  • 11,063
  • 27
  • 104
  • 165
2
votes
3 answers

Convert server UTC time to client local time

I get from server native (C++) application a FILETIME structure in UTC format. On the managed (C#) client side I need to show it as client(!) local time. Do I need along with FILETIME transfer information about server time zone to accomplish this?…
user10101
  • 1,704
  • 2
  • 20
  • 49
2
votes
1 answer

Why is the constant 11644473600 used for converting FILETIME to Unix time?

I've been researching on how different operating systems represent time, as well as how to convert between them. I've read several pages that all describe a similar method for converting between FILETIME and Unix time, most notably this post. The…
Azrael
  • 87
  • 5
2
votes
2 answers

Get Current Date Time in FileTime structure in Objective-C

I am trying to get current Date Time in FileTime structure in objective-c, is that possible? Thanks.
Ahmad Kayyali
  • 8,233
  • 13
  • 49
  • 83
2
votes
1 answer

How to get current time in FILETIME format?

How can I use PowerShell on Windows to get the current time in the Windows FILETIME format? Something like this answer about Linux except for Windows, using the Windows FILETIME format (64-bit value representing the number of 100-nanosecond…
Tuor
  • 875
  • 1
  • 8
  • 32
2
votes
1 answer

Retrieving boot time using GetTickCount64

I'm trying to extract boot time by getting current time SYSTEMTIME structure, then converting it to FILETIME which I then convert to ULARGE_INTEGER from which I subtract GetTickCount64() and then proceed on converting everything back to…
Alex Volkov
  • 2,812
  • 23
  • 27
2
votes
2 answers

Convert Filetime to time (from variable) PHP

I have a filetime time of '131841804730412861' I do not have a file, I have a filetime coming from an API I am trying to convert it to a "normal" time Is there a way to decode filetime from a varible in php seeing as Microsoft Filetime has an epoch…
2
votes
5 answers

How to get File Time in C++

i am having a problem in getting the File Time Creation.. could anyone know how to get the FILE time?? I got a code that gets the file name of a certain directory my problem is i dont know how to put the filetimes on each file in the…
2
votes
1 answer

setting the create date of a file

I have a folder full of mp3 files. They are named consecutively 01.mp3 through 86.mp3. They currently all have the same create_date. I need them to all have different create_dates, preferably a day apart. What the create date is doesn't really…
Jeff
  • 423
  • 1
  • 5
  • 14
2
votes
2 answers

What is the safest way to subtract two System.Runtime.InteropServices.ComTypes.FILETIME objects

I wonder what is the safest way to subtract two System.Runtime.InteropServices.ComTypes.FILETIME objects? I used the following code but sometimes it gives me ArithmaticOverflow exception due to the negative number in Low 32-bit values. I am not sure…
Anindya Chatterjee
  • 5,824
  • 13
  • 58
  • 82