gws.plugin.model_value.current_timestamp¶
Current timestamp value.
Computes the current date and time (gws.lib.datetimex.now). Typically used
to record when a feature was created or changed, or as a bound of a date range
validator.
Example:
fields+ {
name "updated_at"
type "datetime"
values+ { type "currentTimestamp" forRead false }
}
Source code: gws.plugin.model_value.current_timestamp
Package Contents¶
- class gws.plugin.model_value.current_timestamp.Config¶
Bases:
gws.base.model.value.ConfigValue set to the current date and time.
- class gws.plugin.model_value.current_timestamp.Object¶
Bases:
gws.base.model.value.ObjectCurrent timestamp value object.
- compute(field, feature, mc)¶