gws.plugin.model_field.time¶
Time field.
A scalar field for time values. Values from the client are parsed with
gws.lib.datetimex.parse_time and stored as datetime.time 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 "opens_at" type "time" title "Opening time" }
Source code: gws.plugin.model_field.time
Package Contents¶
- class gws.plugin.model_field.time.Config¶
Bases:
gws.base.model.scalar_field.ConfigField for time values.
- class gws.plugin.model_field.time.Object¶
Bases:
gws.base.model.scalar_field.ObjectTime field object.
- attributeType¶
- configure_widget()¶
- prop_to_python(feature, value, mc)¶
- python_to_prop(feature, value, mc)¶
- class gws.plugin.model_field.time.Props¶