# \[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management

**URL:** <https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568>\
**Category:** Apps\
**Tags:** app, tools, homey-pro, bll\
**Created:** [December 16, 2018, 10:29pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568 "2018-12-16T22:29:57Z")\
**Posts on this page:** 1\
**Showing post:** 316

<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:** [March 15, 2023, 10:26pm UTC](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/316 "2023-03-15T22:26:06Z")

</div>

Okay, @Peter_Kawa, and others, coming soon (ready in develop):

### BLL has a new build-in function: time

`time(format, timeMs?, timeSec?)`

This function will return the given time (from ms or seconds) in the requested format.  
Handy to convert (milli)seconds into timestamps!

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5df9d8c93f78249061f4b844601b297458ebe0a8.png)  
(It took 11 days.)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/3975e05379d41661c0469bfffab3b743ec92a28c.png)

Very usefull for the new feature coming to the [Advanced Virtual Devices](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198) from the [Device Capabilties app](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/).

### Reflection of values in AVDs

> [@\[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/253):
>
> Coming soon to the [Device Capabilities App](https://homey.app/nl-nl/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/): Reflection of Variables or Chronographs in AVDs! [image] You can now (well, when it’s published) select entities from other apps to be reflected as value of the AVD field! For example, let it reflect a [Better Logic Library](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/) variable: [image] Or let it reflect a [Chronograph](https://homey.app/nl-nl/app/nl.fellownet.chronograph/Chronograph/): [image] Here the Elapsed time is formatted with the BLL expression to fit the textfield with a nicely timestamp. You can also let a button reflect the Running (or removed) status…

---

_[View the full topic](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568)._
