# \[APP\]\[Pro\] Better Logic Library - For Users

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-for-users/71876>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, logic, bll\
**Created:** [November 7, 2022, 10:13pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876 "2022-11-07T22:13:40Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [January 14, 2023, 6:06am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/26 "2023-01-14T06:06:49Z")

</div>

although again it’s a very nice flow from @Peter_Kawa , perhaps here is a somewhat simpler solution.  
Only issue is, it works with UTC (since Homey base time is always set to UTC/GMT).

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/6/4676b9e3b17704abe9b76a5a1778d15642b52b84.png)

`new Date().setHours(18,0,0,0) - Date.now() < 5*60*1000;`

This Condition Expression card will return true when the time is less then 5 minutes before 18u00utc.

---

_[View the full topic](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)._
