time attribute

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-11-14 22:03:41 -02:00
parent 903891e3d9
commit 0568d4383a
2 changed files with 10 additions and 0 deletions

View File

@ -52,5 +52,10 @@ Spec_0_1.prototype.id = function(_id){
return this; return this;
} }
Spec_0_1.prototype.time = function(_time){
this.payload['eventTime'] = _time.toISOString();
return this;
}
module.exports = Spec_0_1; module.exports = Spec_0_1;

View File

@ -29,5 +29,10 @@ Spec_0_2.prototype.id = function(_id){
return this; return this;
} }
Spec_0_2.prototype.time = function(_time){
this.payload['time'] = _time.toISOString();
return this;
}
module.exports = Spec_0_2; module.exports = Spec_0_2;