From bigfug
Jump to: navigation, search

Clock.png

The Clock node breaks down time into its component parts with millisecond (1000'ths of a second) accuracy.

A specific time can be supplied via the Time input otherwise it will use the current system time.

Time is stored as a 64-bit integer measuring the number of milliseconds from the Unix Epoch.

Inputs

  • Time (Integer) - time in milliseconds since 1st January 1970

Outputs

  • Hour (Integer) - hour in the range 0-23
  • Minute (Integer) - minute in the range 0-59
  • Seconds (Integer) - seconds in the range 0-59
  • Day Ms (Integer) - milliseconds since the start of the day 0-86,400,000
  • Milliseconds (Integer) - milliseconds in the range 0-999
  • Day Position (Float) - how much of the current day has elapsed 0.0-1.0
  • Hour Position (Float) - how much of the current hour has elapsed 0.0-1.0
  • Minute Position (Float) - how much of the current minute has elapsed 0.0-1.0
  • Second Position (Float) - how much of the current second has elapsed 0.0-1.0