get unixtimestamp

This block is part of the date group and was last modified in core v10.4.28.

get unixtimestamp v10.4.28

Get the Unix timestamp of the given date.

In pins 1
  • date required
    date

    The date for which to retrieve the Unix timestamp.

Out pins 1
  • number
    number

    The Unix timestamp corresponding to the given date.

A typical wiring for get unixtimestamp: date now feeds the date pin; the number out pin feeds cast to value.

Studio canvas example for the get unixtimestamp block: typical wiring for get unixtimestamp.

Commonly used with

In production blueprints, this block is most often wired together with:

  • date now: feeds into this block. Gives you the current date based on your timezone.
  • cast to value: this block feeds into it. Converts the given number into a value.

Version history

Introduced in v10.4.28.


Back to date Return to the main group to view all sub-groups Back to date Return to the group to view all blocks within this group