From 8ef0329e138ab8fef8050e175b1bac6caffe7fb7 Mon Sep 17 00:00:00 2001 From: Vijeinath Tissaveerasingham Date: Thu, 18 Nov 2021 19:01:04 +0100 Subject: [PATCH] docs: add time value section (#116) --- docs/dsp-tools-create.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/dsp-tools-create.md b/docs/dsp-tools-create.md index 2731002b2..6cd263286 100644 --- a/docs/dsp-tools-create.md +++ b/docs/dsp-tools-create.md @@ -628,6 +628,33 @@ which means anytime in between 1925 and the 22nd March 1927. } ``` +###### TimeValue + +`"object": "TimeValue"` + +A time value represents a precise moment in time in the Gregorian calendar. Since nanosecond precision can be included, it is suitable for use as a timestamp. + +*gui-elements / gui_attributes*: + +- `TimeStamp`: A GUI element for _TimeValue_ which contains a date picker and a time picker. + - _gui_attributes_: No attributes + +*Example:* + +```json +{ + "name": "hasTime", + "super": [ + "hasValue" + ], + "object": "TimeValue", + "labels": { + "en": "Time" + }, + "gui_element": "TimeStamp" +} +``` + ###### DecimalValue `"object": "DecimalValue"`