Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:programmingblocks:time [2018/06/06 13:17]
kniwwelino [Blocks]
en:programmingblocks:time [2018/07/03 09:11] (current)
kniwwelino [Blocks]
Line 30: Line 30:
   * ''​dd.MM.YYYY''​ returns only the current date, such as, 25.05.2018   * ''​dd.MM.YYYY''​ returns only the current date, such as, 25.05.2018
   * ''​HH:​mm:​ss''​ returns only the current time, such as, 14:25:30   * ''​HH:​mm:​ss''​ returns only the current time, such as, 14:25:30
 +  * ''​HOUR''​ returns only the current hour, such as 14
 +  * ''​MINUTE''​ returns only the current minute, such as 25
 +  * ''​SECOND''​ returns only the current second, such as 30
 +
 +=== Get the current date/time field as number ===
 +{{:​en:​programmingblocks:​timeint.png|}}
 +
 +This block returns the current date and/or time as a integer number.
 +
 +Options:
 +  * ''​YEAR''​ returns the full year as four digits, such as 2018
 +  * ''​MONTH''​ returns the month starting with January as 1, such as, 5
 +  * ''​DAY''​ returns only the current day, such as, 13
   * ''​HOUR''​ returns only the current hour, such as 14   * ''​HOUR''​ returns only the current hour, such as 14
   * ''​MINUTE''​ returns only the current minute, such as 25   * ''​MINUTE''​ returns only the current minute, such as 25