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
4 answers

Is it possible to do a 'find . -ctime n' in JDK7?

Is it possible to do a equivalent 'find . -ctime n' (Unix command) in JDK7? i.e. find all files based on last changed time? I had a look at the new FileVisitor/BasicFileAttributes/SimpleFileVisitor classes but I cannot see how it could be done.
Wayne
  • 914
  • 2
  • 13
  • 25
1
vote
0 answers

Converting Month, Date, Year to FILETIME

Is there any function that converts a Month, Day, Year combination (e.g., "March 21, 2009"), to FILETIME? I don't mind doing it manually using a SYSTEMTIME, but anything Windows provides will be better than what I do. Thanks for any info.
user12381459
1
vote
1 answer

Kotlin convert FileTime to day, month, year

Problem: I have got a directory of files, which have a creation date. What I am trying to reach is to get the value of the creation date day, month and year. However, I am working with a FileTime. I was expecting to be able to call a GetMonth method…
zerk
  • 516
  • 4
  • 9
  • 34
1
vote
1 answer

Convert Javascript Date object to Filetime

Can't believe I'm unable to find the very simple case of converting a Javascript date object to Filetime. The other way around popped up a lot while searching. I have provided the solution below for anyone else who is looking for it.
GusOst
  • 4,105
  • 3
  • 19
  • 28
1
vote
1 answer

JavaScript converted FILETIME is one day off

I have been reading about the JavaScript 'off-by-one' for dates, but I cannot figure out how to implement it in this situation. I'm converting some values from an Internet Explorer cookie into a Microsoft FILETIME, but it's always ahead by one day,…
Tony
  • 3,587
  • 8
  • 44
  • 77
1
vote
1 answer

How to convert milli seconds time to FILETIME in c++

I have a time in secs (ex:1505306792). How to convert this into FILETIME? Here is the code i have tried INT64 timer64 = 1505306792; timer64 = timer64 *1000 *10000; ULONGLONG xx = timer64; FILETIME fileTime; ULARGE_INTEGER…
Srikanth
  • 39
  • 4
1
vote
0 answers

curl php save file perserving modication date in file timestamp

my code works fine but does not perserve filetime/modification date from the server...... i added filetime option to curl but writing the file still writes the file as the moment it was saved (current date) any suggestions? I am visually impaired…
1
vote
0 answers

Getting User and Kernel time of a Thread

Here i need total time of a thread,so i am using GetThreadTimes function to get thread times kernel mode as well as in user mode. GetThreadTimes(threadHandle, &ftCreate, &ftExit, &ftKernel, &ftUser); LARGE_INTEGER qwKernel, qwUser; qwKernel.HighPart…
Durai
  • 87
  • 12
1
vote
2 answers

C++ how to get the recently changed timestamp of a file?

I would like to determine the last recently changed timestamp of a file on Windows. Yes, I have used the stat function with st_atime, st_mtime, st_ctime. However Windows is not updating these timestamps for the specific files. (I don't want to…
1
vote
1 answer

Decode Hex Timestamp, probably filetime

im struggling with a timestamp i want to convert to human readable format, it is from OPCUA protocol and is supposed to be in hundreds of nanoseconds since 1. Jan 1601, so it should be filetime. However, trying various solutions posted here i am not…
holz
  • 13
  • 3
1
vote
2 answers

Setting file modification date from exif date

To set the file modification date of images to the exif date, I tried the following: exiftool '-FileModifyDate
user1261273
1
vote
1 answer

Convert 100-nanoseconds to millisecond confusion

NOTE: This is likely a question about flawed math, rather then a question about the a windows system call as described in the question. We are working with with the GetSystemTimeAsFileTime() win32 call, and seeing what I think are strange results…
user590028
  • 11,364
  • 3
  • 40
  • 57
1
vote
2 answers

I have piece of code that gets duration from a FILETIME struct. What does it mean?

I have this function void prtduration(const FILETIME *ft_start, const FILETIME *ft_end) { double duration = (ft_end->dwHighDateTime - ft_start->dwHighDateTime) * (7 * 60 + 9 + 496e-3) + (ft_end->dwLowDateTime -…
Azula
  • 457
  • 2
  • 5
  • 13
1
vote
1 answer

Timeout for a cache file in php

In php, i create a cache file in order to stock complexe results variables. One variable, one cache file. Well done its work fine. The problem lies in the term of the cache. For the moment i put into the file the timeout and the variable, but its…
Jeremy
  • 279
  • 2
  • 13
1
vote
2 answers

Wherein lies the danger of obtaining file times in Silverlight?

Before uploading a file I need to salt the name with some additional information to increase the chance of the filename being unique (stateless-ly). Invoking FileInfo.LastWriteTime-get throws a SecurityException saying the process needs elevated…
Zodiac Devoe
  • 41
  • 1
  • 5