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

<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, 9:46am UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/28 "2023-01-14T09:46:11Z")

</div>

> [@OH2TH](#):
>
> Can I actually get those with BLL expression? I.e. as a local time offset?

Well, you can kind off, but not in the easy ‘formatting’ way: because i didn’t find a all-around solutions independend of locale and timezone.

`date('DATETIME', null, 'en')`

You will get a tag, you can use the last number if it’s like this.

But if you get this, you will probably get the same result as me:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/11df2740627cddbdeebcd4af819fc87f8be90860.png)

**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.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/7/077c2e2d283bd0244488320f8c3bcc24e5eb7d7d.png)

---

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