flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 28 Mar 2025, 05:55
It is possible to use GetSystemTimeAsFileTime and divide by 10^7 to get seconds since the epoch. Then adjust the epoch by adding/subtracting some seconds to put it into the wanted timezone.
|
|||
![]() |
|
Core i7 28 Mar 2025, 06:19
@revolution - great!
I just found it on the Microsoft website, only this is the reverse conversion from TimeDataStamp to FileTime. https://learn.microsoft.com/en-us/windows/win32/sysinfo/converting-a-time-t-value-to-a-file-time I wonder why engineers didn't introduce a special API for this, otherwise it turns out there is time, but no function (you have to do it manually). |
|||
![]() |
|
revolution 28 Mar 2025, 06:37
I find the search engines to be "less good" when searching for technical information. It's better to read the manuals and docs, or ask a real person (like on this board), than to rely on an Internet search to uncover something, IMO.
Many of the popular engines available today are becoming more focussed on displaying sales sites in preference to informational sites. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.