Recently I was asked to setup a block to the ability to submit changes in the morning hours before out change meetings. In the automator I get the current datetime for our timezone (example below):
2025-04-01T10:56:42.624202-05:00
On a separate logical expression, I need to get the current hour so that a following condition can be used with a “less than” argument but it doesnt look like there is an hour operator (there are Day, Month, Year operators).
For the meantime, I used the below to parse out the hour value at but it returns a string value instead of a number, which means I need to do a “contains” and specify every possible hour:
{{E6.result|split: "T"|last|truncate: 2,""}}
While what I have works, being able to return the hour value as a number would make configuration much less intensive.


