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
2
votes
0 answers

PHP mutliple .scss Files to one .css File after change

i would like to compile multiple .scss files to one .css file. my code:
180690
  • 181
  • 2
  • 13
2
votes
3 answers

Rounding FILETIME in C# to accommodate FAT rounding

I have a Windows FILETIME : A 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) and I need it rounded UP to the nearest even second, as described here. The code I have so far: var originalDt =…
GoldieLocks
  • 845
  • 7
  • 22
2
votes
2 answers

Can a batch file change the system date; save file with attributes; change date back to current date?

Can a batch file change the system date; save file with attributes; change date back to current date? Goal to save MYFILE.TXT with the date of 01-01-2010 using Batch commands. I have tried to set date=01-01-2010 and then save the file, but it didn't…
Edoctoor
  • 183
  • 1
  • 3
  • 11
2
votes
4 answers

How to get file time by name in windows?

Windows has GetFileTime API which allows getting file time information by open file handle. What I wanted to know is, if it is possible to get this information by file name without opening the file explicitly. And if possible is it also applicable…
Szere Dyeri
  • 14,916
  • 11
  • 39
  • 42
2
votes
0 answers

LibCurl SFTP get filesize and filetime

how to get filesize and filetime with libcurl on Sftp. Here is my code: public RequestFileInfo(const String:filename[]) { new Handle:curl = curl_easy_init(); if(curl != INVALID_HANDLE) { CURL_DEFAULT_OPT(curl); …
Alexey
  • 125
  • 2
  • 9
2
votes
0 answers

Create specific FILETIME struct in C++

I've done research on MSDN and this site relating to my question, but have been unsuccessful in finding a specific, non-hacky solution. I would like to have the ability to create specific UTC FILETIME struct in C++. The user has the ability to…
fowlball1010
  • 343
  • 3
  • 13
2
votes
1 answer

How to comapre 2 FILETIME variables to see if a file is older than 30 days

I would like to check if a folder is greater that 30 days old and have the following code static bool ExpiredDirectory(CComBSTR directory) { WIN32_FILE_ATTRIBUTE_DATA fileAttrData = {0}; GetFileAttributesEx(directory, GetFileExInfoStandard,…
John
  • 1,403
  • 3
  • 19
  • 31
2
votes
1 answer

API to set file timestamps in OS X

I want to (bidirectionally) synchronize files between a PC (Win7, NTFS) and a Mac (OS X, HFS+). I have tried using a lot of existing tools / methods (Unison, SyncToy or other software working over Samba shares etc.) but none of them are able to…
0cd
  • 1,729
  • 3
  • 15
  • 24
1
vote
1 answer

C# to MASM difficulty with FILETIME

I have two lines of C# I would like to convert to assembly. I've tried to follow this answer (FILETIME to __int64) without getting a satisfying result. This is the two lines of C# System.DateTime dt = System.DateTime.Now; long x =…
f2lollpll
  • 997
  • 6
  • 15
1
vote
1 answer

FILETIME information retrieval on changing timezones

Suppose i have a FILETIME which has some value (which we can see by converting it to systemtime) when I am in timezone1. Suppose I changed my timezone to timezone2. Now I want to get the time in hours and minutes (format) which was in timezone1.
Peter
  • 2,719
  • 4
  • 25
  • 55
1
vote
0 answers

MS FILETIME as Absolute Time Stamp for Data Logging seems to be a good option

FILETIME as Absolute Time Stamp for Data Logging seems to be a good option, someone knows how to make FILETIME work on Raspberry Pi ? FILETIME counts the number of hectonano-seconds (0.1 us units) since Jan 1, 1601. Raspberry Pi has a 64-bit…
1
vote
1 answer

How to get last modified time of file while using infile statement?

I am going to analyze a batch of SAS program file and I am stucked in getting the last modified time of program files. I have thought about X command but it was too inefficient. I just find when I use infile statement: data test; infile…
whymath
  • 1,262
  • 9
  • 16
1
vote
0 answers

Convert systemtime to filetime (Python)

Possible Duplicate: Datetime to filetime (Python) I'm having trouble converting systemtime to filetime on windows. I will be glad if anyone will help me or give me some guides. Thanks! Input: Mon, 13 August 2007 00:13:40 UTC Output:…
jeremy
  • 71
  • 1
  • 2
1
vote
3 answers

Why does my SystemTimeToFileTime return a result which is off by 5 hours?

It would make sense if I was in a ±5 hour timezone, but I'm in GMT -06:00, so I'm not sure if timezones are my problem or if it's something else. Here is my code I'm using: Private Sub SetFileTimes(file As String, Optional creationTime As Date,…
dlras2
  • 8,416
  • 7
  • 51
  • 90
1
vote
1 answer

FILETIME ambiguous symbol (error code E0266)

I have a basic C++/CLI DLL in VS 2017 which defines the wrapper class described below. The project properties are set to produce CLR with .NET 4.6.1 as target. #include "ApiManagerWrapper.h" // very basic CLI wrapper header #include "Handler.h" //…