Coverage for gws-app/gws/plugin/model_value/current_timestamp/__init__.py: 0%

9 statements  

« prev     ^ index     » next       coverage.py v7.11.0, created at 2025-10-16 23:09 +0200

1"""Current timestamp value.""" 

2 

3import gws 

4import gws.base.model.value 

5import gws.lib.datetimex 

6 

7gws.ext.new.modelValue('currentTimestamp') 

8 

9 

10class Config(gws.base.model.value.Config): 

11 """Current timestamp value configuration.""" 

12 

13 pass 

14 

15 

16class Object(gws.base.model.value.Object): 

17 def compute(self, field, feature, mc): 

18 return gws.lib.datetimex.now()