|
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,
I've been using Visula Studio 2008 Professional for almost 2 yrs already. Just this week, I am currently receiving a "System.ArgumentOutOfRangeException: Not a valid Win32 FileTime. Parameter name: fileTime" error on all WINDOW FORM PROJECTS that...
Answer Snippets (Read the full thread at microsoft):
Parameter name: fileTime
at System.DateTime.FromFileTimeUtc(Int64 fileTime)
at System.IO.FileSystemInfo.get_LastWriteTimeUtc.
System.ArgumentOutOfRangeException: Not a valid Win32 FileTime.
|
|
On Mon, 26 Jan 2009 19:34:57 -0800, Michael Tissington <nospam@nospam.com
How can I parse the following string as a FILETIME ?
"2009-01-23T11:57:26-06:00"
Thanks.
Started by Michael Tissington on
, 14 posts
by 5 people.
Answer Snippets (Read the full thread at omgili):
Library/ms724950.aspx
Then, I would call SystemTimeToFileTime() API to convert that to a FILETIME (beacuse the OP
requested a conversion to FILETIME):
<code
LPCTSTR szInputDate = _T;
ATLVERIFY(t.GetAsSystemTime(sysTime));
....
|
|
I had a vbscript doing this for me, I was thinking converting this
function to PS, but I wonder if a build-in .NET which I can call with
PS was already existing
var filetime = (factor * filesize) / kps[x];
yearmod = filetime % 31557900;
year = Math.floor...
Answer Snippets (Read the full thread at vistax64):
Existing
>
> var filetime = (factor * filesize) / kps[x];
> yearmod = filetime % 31557900;
> year = Math.floor(filetime / 31557900);
> day = Math.floor(yearmod / 86460);
> daymod = filetime % 86460;
> ....
|
|
We have a database from third party software where it has LastModifiedDate field stored as WINDOWS filetime. We need to conver this to .NET DateTime format and supricingly it has -ve values.
.NET's DateTime.FromFileTimeUtc method will work for +ve filetime...
Started by Nikhil Vaghela on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Negative FILETIME values cannot convert, you'll get an exception when you try to use DateTime.FromFileTime.
The corresponding FILETIME value is 2650467743 .
Representable in DateTime is Dec 31 of the year 9999 .
|
|
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 .
|
|
The time function in the same code crashes on xp but runs fine on windows 2003 machine. Any ideas?
TIME_ZONE_INFORMATION tzi; SYSTEMTIME stStartUTC; SYSTEMTIME stStart; LPCSTR lpszZone; BOOL bStatus; FILETIME* pFT; DWORD dReturn; pFT = new FILETIME; if...
Started by mithuna on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That's a CRT function that's called when a security....
The __report_gsfailure on the stack frame is significant.
That should give you some hint.
Try adding a GetLastError call to check if every function upto the SystemTimeToTzSpecificLocalTime succeeds or not .
|
|
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 .
|