convert_msdate
Use the convert_msdate
command to specify a Microsoft date value from an Active Directory object field such as pwdLastSet
and convert it into a human-readable form.
Syntax
convert_msdate msdate
Options
This command takes no options.
Arguments
This command takes the following argument:
Argument | Type | Description |
msdate |
string |
Required. Specifies the Microsoft date value for conversion. |
Return value
This command returns the day of the week, the day of the month, the time of day using a 24-hour clock, the time zone, and the year.
Examples
convert_msdate [get_object_field pwdLastSet]
This example returns converted into a format similar to this:
Thu Mar 24 14:40:26 PDT 2010
The unseen value returned by get_object_field pwdLastSet
in this example was 12914026824062500
, which was converted to a human-readable time and date.
Related Tcl library commands
None.