filetime

Decode Hex Timestamp, probably filetime

不问归期 提交于 2021-01-29 04:40:24
问题 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 able to convert it to the right time. Here are some examples, 1c67dc4ab30dd201 -> Sep 13, 2016 13:38:05.343106800 CET 15605a199070d201 -> Jan 17, 2017 08:05:35.012046900 CET 322b4f629970d201 -> Jan 17, 2017 09:12:02.882846600 CET As wireshark is

Obtain the last modified date of a file with MILLISECONDS?

≡放荡痞女 提交于 2019-12-23 23:03:42
问题 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 for milliseconds. My code so far does: the user chooses a folder the code displays in column A all the file names found and in column B the date, hour,minute and seconds (last modified date/time) What should I do to the current code to obtain the

c++ \ Convert FILETIME to seconds

回眸只為那壹抹淺笑 提交于 2019-12-21 20:44:57
问题 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 lastModified = ull.QuadPart / 10000000ULL - 11644473600ULL; ULARGE_INTEGER xxx; xxx.LowPart = currentTimeLow1; xxx.HighPart = currentTimeHigh1; time_t current = xxx.QuadPart / 10000000ULL - 11644473600ULL; unsigned long SecondsInterval = current - lastModified; if

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

∥☆過路亽.° 提交于 2019-12-21 11:02:10
问题 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 Mar 05 12:05:09 2013], [datafile2, Mon Mar 04 11:23:02 2013, Tue Apr 09 10:57:55 2013], [datafile2.1, Mon Mar 04 11:37:21 2013, Tue Apr 02 15:35:58 2013], [datafile3, Mon Mar 04 15:36:13 2013, Thu Apr 18 15:03:25 2013], [datafile4, Mon Mar 11 09:20:08 2013, Mon May 13 16:30:59

Delphi overwrite file and wrong modified date time

元气小坏坏 提交于 2019-12-11 15:55:49
问题 I'd like to get a file last modified time in Delphi. Normally something like FileAge() would do the trick, only the problem is: if I overwrite * File A * with File B using CopyFile , File A's modified date is not updated with current overwrite time as it should(?) I get that: CopyFile also copy file attributes, but I really need to get the modified date that also works when a file is overwritten. Is there such function? My whole application relies on modification time to decide whether or not

Convert server UTC time to client local time

一个人想着一个人 提交于 2019-12-08 03:20:58
问题 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? Or such information already contains in FILETIME in UTC format? 回答1: Description You can convert a UTC DateTime to local Time using TimeZoneInfo Sample TimeZoneInfo.ConvertTimeFromUtc(YourDateTime, TimeZoneInfo.Local); You can convert a UTC DateTime

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

*爱你&永不变心* 提交于 2019-12-06 22:43:07
问题 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 time on each image through SYSTEMTIME. I looked at the MSDN and it says not to modify the values within SYSTEMTIME itself, but to convert it into a FILETIME and then an ULARGE_INTEGER. My question is how is the ULARGE_INTEGER split up? Is the HighPart

API to set file timestamps in OS X

▼魔方 西西 提交于 2019-12-06 11:39:30
问题 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 preserve the file creation timestamps (hence-forward referred to as FCTs) on my files, which is unacceptable to me. Unison doesn't understand the notion of FCTs, perhaps because it was primarily built with Unix in mind (See my Unison forum post)

Convert server UTC time to client local time

◇◆丶佛笑我妖孽 提交于 2019-12-06 06:29:36
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? Or such information already contains in FILETIME in UTC format? Description You can convert a UTC DateTime to local Time using TimeZoneInfo Sample TimeZoneInfo.ConvertTimeFromUtc(YourDateTime, TimeZoneInfo.Local); You can convert a UTC DateTime to any timezone, if you know the name. For example. TimeZoneInfo.ConvertTimeFromUtc(YourDateTime,

Latest possible FILETIME

天大地大妈咪最大 提交于 2019-12-05 11:13:26
问题 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 dwLowDateTime and dwHighDateTime are 0x00000000 ), so I have that. What is the latest possible FILETIME? My first instinct is to set dwLowDateTime and dwHighDateTime to 0xFFFFFFFF , but then I questioned if that really is a valid time that I need to test,