Handbook · Reference · Blockly · Date and time
Blockly: Date and time
Where in the UI. Scripts tab toolbox.
Clock, duration, format, weekday helpers, datetime writes.
| Block id | Read as | Purpose |
|---|---|---|
containd_get_datetime | get datetime | callHost(getCurrentDateTime) |
containd_add_duration_to_iso | add duration to iso | callHost(addDurationToIso) |
containd_diff_iso_days | diff iso days | callHost(diffIsoDays) |
containd_compare_iso | compare iso | callHost(compareIso) |
containd_format_iso | format iso | callHost(formatIso) |
containd_get_datetime_part | get datetime part | month is 1–12; timezone local|utc |
containd_create_datetime_from_parts | create datetime from parts | month 1–12; hour/minute/second default 0; returns ISO |
containd_set_datetime_part | set datetime part | keep other parts; month 1–12; returns ISO |
containd_get_current_weekday_index | get current weekday index | 0=Sun … 6=Sat |
containd_get_current_weekday_name | get current weekday name | Eng short Sun…Sat |
containd_get_last_weekday_before | get last weekday before | on-or-before (passthrough if same day); preserves clock time; returns ISO |
containd_get_next_weekday_after | get next weekday after | on-or-after (passthrough if same day); preserves clock time; returns ISO |
containd_write_datetime_item_field | write datetime item field | ISO 8601 datetime string |
containd_write_datetime_category_property | write datetime category property | ISO 8601 datetime string |