Forum Discussion
ge0ff73_32053
Apr 03, 2015Nimbostratus
Trying to convert pwdLastSet to Day Month Year Time format
I'm trying to take session.ad.last.attr.pwdLastSet and convert it to a more user-friendly readable format. I'm very weak on both Active Directory as well as Tcl. Here's what I have so far: ...
- Apr 04, 2015
The time expected in clock cmd is in epoch. But AD returns in "Windows NT time" format. For the conversion, can try the following:
set clockFormat "[clock format [expr (($pwdLastSet_epoch / 10000000) - 11644473600)]]"
kunjan
Nimbostratus
The time expected in clock cmd is in epoch. But AD returns in "Windows NT time" format. For the conversion, can try the following:
set clockFormat "[clock format [expr (($pwdLastSet_epoch / 10000000) - 11644473600)]]"
ge0ff73_32053
Apr 04, 2015Nimbostratus
Thanks that was it!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects