Tasneem,
the format of a UTC time is described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/ti
me_0fzm.asp
It is the number of 100-nanosecond intervals since January 1, 1601. With
the Win32-API-Function 'FileTimeToSystemTime' it can be converted to a
readable format.
This is a C++ example:
FILETIME ftRawvalue;
SYSTEMTIME stGMT, stLocal;
// Convert the raw time value to GMT Zone
FileTimeToSystemTime(&ftRawvalue, &stGMT);
// Convert the time from GMT zone to your local time zone
SystemTimeToTzSpecificLocalTime(NULL, &stGMT, &stLocal);
// Build a string showing the date and time.
wsprintf(lpszString, "%02d/%02d/%d %02d:%02d",
stLocal.wDay, stLocal.wMonth, stLocal.wYear,
stLocal.wHour, stLocal.wMinute);
There should be a similar VB example, but I'm not a VB expert.
Rainer.
"Bhaijee, Tasneem" <[EMAIL PROTECTED]>@mail.activedir.org on
28.03.2002 18:10:31
Bitte antworten an [EMAIL PROTECTED]
Gesendet von: [EMAIL PROTECTED]
An: <[EMAIL PROTECTED]>
Kopie:
Thema: [ActiveDir] Pwdlastset attribute
Pwdlastset is an attribute in Active directory which stores the value in
UTC (universal Coordinated Time) format.
Value example: 126550226842430343
Data type for the attribute is an integer.
How do I convert this value to local time?
Thanks.
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/