|
What is the proper way to convert a FILETIME structure into __int64? Can you please tell me?
Started by mnhab on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I don't think you're suppose to: "Do not cast a pointer to a FILETIME structure to either a ULARGE really wanted it would be something like:
__int64 to_int64(FILETIME ft) { return static_cast<__int64>(ft.dwHighDateTime) << 32....
|
|
I've determined that I need to convert a Windows FILETIME type to something PHP can work with. I want this to be a PHP function.
Say I have this value: 60 F3 47 D1 57 98 C9 01
Step 1: (Thanks to this page http://www.cyanwerks.com/file-format-url.html ...
Started by lynn on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Courtesy of Hugh Bothwell in answer to this question: http://stackoverflow.com/questions/610603/help-me-translate-long... .
From the MSDN documentation :
Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC) .
|
|
The FILETIME http://msdn.microsoft.com/en-us/library/ms724284(VS.85).aspx structure counts from January 1 1601 (presumably the start of that day) according to the microsoft documentation, but does this include leap seconds?
Note: While it's generous to...
Started by smoofra on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Here 's some more info about why: What is the Windows FILETIME actually....
If you add 24 * 60 * 60 seconds to a FILETIME that represents 1:39:45 today, you get a FILETIME that represents 1:39:45 tomorrow, no matter what.
Of leap seconds.
|
Ask your Facebook Friends
|
Hi Everybody.
I'm fixing and enhancing Sztupy's ADB-FS plugin accessing android device using ADB protocol. I'm tearing my hair off now because I can't get the time and date correctly. I have tried so many ways of converting FILETIME, unix timestamp, SYSTEMTIME...
Started by Aleq on
, 5 posts
by 2 people.
Answer Snippets (Read the full thread at ghisler):
But what about those minutes:?: Am I missing....
I would convert the time.
Http://img.ctrlv.in/4f98ff4797b6e.jpg
http://img.ctrlv.in/4f98ff32f2e9a.jpg
I'm currently in GMT+3 timezone, so this would explain those hours and I would be ok with that .
Debugging...
|
|
I've implemented this function, but for some reason it seemingly at random will subtract an hour.
As an example, I created a file at 5/16/2012 at 1:15AM.
Change date only* to 5/10/xxxx, stays at 1:15AM - any subsequent change in year, be it 2011 or 19...
Started by fafalone on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at vbforums):
If now is DST, if then is DST, and compare the two as I circle through SYSTEMTIME, FILETIME.
|
|
I'm using the msxml to parse an xml file. Language is C++. The xml file contains some dates and times using the xsd:dateTime format (Something like that: 2009-04-29T12:00:00Z)
Is there an easy way to convert xsd:dateTime to something like SYSTEMTIME, ...
Started by Name on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use a javascript:
<xsl:transform id="integra-transformer" version="1.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="http://www.w3.org/....
Maybe this helps you: Using strptime to parse ISO 8601 formated timestamps on ioncannon.net .
|
|
I've implemented this function, but for some reason it seemingly at random will subtract an hour.
As an example, I created a file at 5/16/2012 at 1:15AM.
Change date only* to 5/10/xxxx, stays at 1:15AM - any subsequent change in year, be it 2011 or 19...
Started by fafalone on
, 4 posts
by 2 people.
Answer Snippets (Read the full thread at com):
If now is DST, if then is DST, and compare the two as I circle through SYSTEMTIME, FILETIME.
|
|
I have date strings such as 2009-02-28 15:40:05 AEDST and want to convert it into SYSTEMTIME structure. So far I have:
SYSTEMTIME st; FILETIME ft; SecureZeroMemory(&st, sizeof(st)); sscanf_s(contents, "%u-%u-%u %u:%u:%u", &st.wYear, &st.wMonth, &st.wDay...
Started by grom on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
SYSTEMTIME LocalTime = { 0 }; GetSystemTime( &LocalTime....
Have you looked at the TzSpecificLocalTimeToSystemTime Win32 API?
Take a look at this:
http://weseetips.com/2008/05/28/how-to-convert-local-system-time-to-utc-or-gmt/
// Get the local system time .
|
|
On Windows I can do:
HANDLE hProcess = GetCurrentProcess(); FILETIME ftCreation, ftExit, ftKernel, ftUser; GetProcessTimes(hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser); SYSTEMTIME stKernel; FileTimeToSystemTime(&ftKernel, &stKernel); SYSTEMTIME...
Started by thelsdj on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Cross-reference to my related question ..
Check getrusage , I think that should solve your problem .
|
|
On Wed, 27 Feb 2008 20:07:59 +0100, Volker Lendecke <Volker.Lendecke@SerNet.DE> wrote:
On Wed, Feb 27, 2008 at 07:43:42PM +0100, Alex Still wrote:
I think I found it.
Samba-3.0.28 calls set_filetime() from real_write_file(), which 3.0.8 isn...
Started by Volker Lendecke on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at omgili):
This is
introduced calls set_filetime() ....
> set_filetime -> utimes -> write time",
doesnt seem to call set_filetime at all within real_write_file() .
filetime() from real_write_file(), which 3.0.8isn't
> doing.
|