[Freeipa-devel] [PATCH 0137] ipalib: Add DateTime parameter

Tomas Babej tbabej at redhat.com
Thu Jan 9 15:30:54 UTC 2014


Hi,

Adds a parameter that represents a DateTime format using datetime.datetime
object from python's native datetime library.

In the CLI, accepts one of the following formats:
Accepts subset of values defined by ISO 8601:
%Y-%m-%dT%H:%M:%S
%Y-%m-%dT%H:%M
'%Y%m%dT%H:%M:%S'
'%Y%m%dT%H:%M'

Also accepts LDAP Generalized time in the following format:
'%Y%m%d%H%M%SZ'

As a simplification, it does not deal with timezone info and ISO 8601
values with timezone info (+-hhmm) are rejected. Values are expected
to be in the UTC timezone.

Values are saved to LDAP as LDAP Generalized time values in the format
'%Y%m%d%H%SZ' (no time fractions and UTC timezone is assumed). To avoid
confusion, in addition to subset of ISO 8601 values, the LDAP generalized
time in the format '%Y%m%d%H%M%SZ' is also accepted as an input (as this
is the
format user will see on the output).

Part of: https://fedorahosted.org/freeipa/ticket/3306

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-tbabej-0137-ipalib-Add-DateTime-parameter.patch
Type: text/x-patch
Size: 6695 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140109/0efd262b/attachment.bin>


More information about the Freeipa-devel mailing list