This service will output current date.
switch: Boolean. The switching signal of date.
out: Date. Current date object.
2016-08-05T02:54:16.462ZThis service receive a date object and output date information according to specific format.
date: Date. Input date object. If date is not an instance of Date, it will using current Date.
out: String. Format result.
This example generate date object using date service and output information in format of yyyy-MM-dd hh:mm:ss out: 2016-08-05 11:02:40
Whenever in receives a value, the value will be pass to out after delay milliseconds.
delay: Integer. Default is 1000, Non-trigger inport. The time delay.
in: Any.
out: Any. The value from in after delay.
For this example, if the add operation finished, 3 will be output after 1 second delay.
This service can be used as event source, which periodically output 1 to out.
in: Integer. Default is 1000. The period of time.
out: Integer. At this stage, the output value is fixed to Integer 1
After each 1 second, out will output a "hello" string.
This service receive a date object and output according timestamp.
date: Date. Input date object. If date is not an instance of Date, it will using current Date.
out: String. Timestamp.
This example generate date object using date service and output timestamp out: 1470366406291