cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Calculate a date
Calculate a date
Sep 12, 2017 at 12:45pm UTC
joebernardes
(1)
Hi,
Someone have a formula to calculate the date of the attribute "lastLogon" (131496839107085903) of the windows active directory ?
Thanks,
Best regards
Joe
Sep 12, 2017 at 2:18pm UTC
coder777
(8439)
I would think that "lastLogon" is file time. See:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724284(v=vs.85).aspx
Use FileTimeToSystemTime to get a usable date/time:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724280(v=vs.85).aspx
Topic archived. No new replies allowed.