Add date formatting options
Brought to you by:
benih
When exporting LDAP time attributes, they are usually in GeneralizedTime syntax (RFC 4517), ie YYYYmmddHHMMSS.
This is bad to postprocess in excel etc.
Would be cool to be able to specify some flag to format the value, like -a [format=%d.%m.%Y]createTimestamp
to get "01.02.2003" .
The date format string could be used with a standard date format library like unix date.
helpful would also be to have shortcuts like "format:pretty", "time" and "date".
Patch attached
Last edit: Benedikt Hallinger 2024-05-22
Merged