Skip to main content
Skip table of contents

Clock

The clock sends the current system time on its outputs.

Contents


Inputs and Outputs

Inputs

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. 2016 

  • MONTH
    The current month 1-12

  • WEEK
    The current calendar week 1-53

  • DAY
    The day of the month 1-31

  • HOUR
    The hour of the day 0-23 

  • MIN
    The minute of the hour 0-59 

  • SEC
    The second of the minute 0-59 

  • STRING
    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"

///

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.