gws.plugin.model_field.datetime¶
Datetime field.
A scalar field for date and time values. Values from the client are parsed
with gws.lib.datetimex.parse and stored as datetime objects. They are
always sent to the client as ISO strings; locale-specific formatting is left
to the client. Without a configured widget, the field uses an input widget.
Example:
fields+ { name "updated_at" type "datetime" title "Last update" }
Source code: gws.plugin.model_field.datetime
Package Contents¶
- class gws.plugin.model_field.datetime.Config¶
Bases:
gws.base.model.scalar_field.ConfigField for date and time values.
- class gws.plugin.model_field.datetime.Object¶
Bases:
gws.base.model.scalar_field.ObjectDatetime field object.
- attributeType¶
- configure_widget()¶
- prop_to_python(feature, value, mc)¶
- python_to_prop(feature, value, mc)¶
- class gws.plugin.model_field.datetime.Props¶