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

<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:** [July 3, 2023, 1:09pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/70 "2023-07-03T13:09:53Z")

</div>

> [@Shiki](#):
>
> 1/ to extract time from text json output “2023-07-03T16:15:12+01:00”, example I need the only HH:mm ?

Yes, i’ll use the flowcard Format dat for it, but it can be used in any BLL expression or coding through the `date()` method:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/d/3df87f0d81917a04e3feec3a1a7fab14a07fce43.png)

> [@Shiki](#):
>
> 2/ time difference in minutes such as FutureDateTime(YYYY-mm-ddTHH:mm:ss(timezone) minus CurrentDateTime(YYYY-mm-ddTHH:mm:ss(timezone) ?

Yes:

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

If you need it as a number, just wrap parseInt around it:

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

`parseInt(time('M', new Date('2023-07-03T16:15:12+01:00') - now))`

The `now` can be replace with for instance `new Date('2023-07-03T15:15:12+00:00')`

---

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