Clock
The clock sends the current system time on its outputs.
Contents
Inputs and Outputs
Inputs
GATE (see Logic Elements | Datapoint-Gate)
SEND - Send the current value to all connected outputs
Outputs
TS
The so-called UNIX time stamp is output. These are the seconds elapsed since 01.01.1970 00:00 (UTC/universal time).WEEKDAY
The weekday. With Monday being 1 and Sunday being 7.WEEKEND
Sends true if the weekday is Saturday or Sunday, otherwise false.YEAR
The current year - e.g. 2016MONTH
The current month 1-12WEEK
The current calendar week 1-53DAY
The day of the month 1-31HOUR
The hour of the day 0-23MIN
The minute of the hour 0-59SEC
The second of the minute 0-59STRING
A formatted text representing the current time.
The outputs are only updated if the value changes or when they are written initially. For simulation, it is additionally important that only linked outputs are updated.
Configuration
The following options are available for the time format
%B
- month written out completely (probably only English)%b
- month short form "Jan"%m
- month, two-digit "01"%A
- weekday written out completely (probably only English)%a
- weekday short form "Mon"%d
- day of the month, two-digit "02"%H
- hour of the day in 24h format, two-digit%I
- hour of the day in 12h format, two-digit%M
- minute of the hour, two-digit%S
- second of the minute, two-digit%Y
- year, four-digit%y
- year, two-digit%p
- AM (ante meridian) / PM (post meridian)%Z
- time zone (CET / CEST / UTC)%z
- time zone offset (-0700)%L
- milliseconds of the second
Example:
"%Y-%m-%d %H:%M:%S
" is "2016-08-31 14:41:00
"
///