Skip to content

Commit 0568d43

Browse files
committed
time attribute
Signed-off-by: Fabio José <[email protected]>
1 parent 903891e commit 0568d43

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/specs/spec_0_1.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,10 @@ Spec_0_1.prototype.id = function(_id){
5252
return this;
5353
}
5454

55+
Spec_0_1.prototype.time = function(_time){
56+
this.payload['eventTime'] = _time.toISOString();
57+
return this;
58+
}
59+
5560
module.exports = Spec_0_1;
5661

lib/specs/spec_0_2.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,10 @@ Spec_0_2.prototype.id = function(_id){
2929
return this;
3030
}
3131

32+
Spec_0_2.prototype.time = function(_time){
33+
this.payload['time'] = _time.toISOString();
34+
return this;
35+
}
36+
3237
module.exports = Spec_0_2;
3338

0 commit comments

Comments
 (0)