Hi,
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?

Thanks
Mark

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

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


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