# \[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:** 30

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 14, 2023, 1:40pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/30 "2023-01-14T13:40:23Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> **So, the complete solution would be:**  
> `new Date().setHours(18-Number.parseInt(_.last(date('DATETIME', null, 'en'))),0,0,0) - Date.now() < 15*60*1000;`  
> (this is true when less then 15 minutes from your local 18u.

This is guru level 🤪  
I only missed the minutes part of the targeted time, a first wild guess seems to work for 'is true when less than 15 minutes before 18.30h:  
`new Date().setHours(18-Number.parseInt(_.last(date('DATETIME', null, 'en'))),30,0,0) - Date.now() < 15*60*1000;`

---

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