I have a delimited text driver which is processing delimited text
exports of user attributes and it is working well using the below rule.
I now want to also include a CTIME attribute Login Time so the export
file includes the last time a user logged in but I need it to be in a
human readable form:
e.g. 12:00:00 03/08/2010
The rule below will produce the csv file I want except Login Time will
be in CTIME format.
I realise to change the format of the Login Time attribute I need to
use Convert Time but how would I add that into the rule so it adds Login
Time to the csv file in my desired time and date format?


<description>Export All Dealers Extract on Trigger</description>

<if-operation mode="case" op="equal">trigger</if-operation>
<if-xml-attr mode="regex" name="source"
<do-set-local-variable name="ObjectName" scope="policy">
<token-xpath expression="@src-dn"/>
<do-add-dest-object class-name="nissanMIISPerson">
<token-local-variable name="ObjectName"/>
<token-text xml:space="preserve">CN</token-text>
<token-text>Given Name</token-text>
<token-text>Internet Email Address</token-text>
<token-text xml:space="preserve">Login Time</token-text>
<do-add-dest-attr-value class-name="nissanMIISPerson"
<token-local-variable name="ObjectName"/>
<arg-value type="string">
<token-join delimiter=":">
<token-src-attr name="$current-node$"/>

mratcliffe's Profile: http://forums.novell.com/member.php?userid=89308
View this thread: http://forums.novell.com/showthread.php?t=417330