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

<div class="post-metadata">

**Author:** ![Fred\_ckx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fred_ckx/32/86217_2.png) [@Fred\_ckx](https://community.homey.app/u/Fred_ckx)\
**Post date:** [July 14, 2024, 8:11pm UTC](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/197 "2024-07-14T20:11:30Z")

</div>

I see quite some ways to control the datetime format.

For my project I want to add the time of receipt of an MQTT message to my data. I now do that in a human readable format, but I also want to do it as “epoch” / (micro)seconds since 1/1/70. Does BLL offer a way to do that?

BTW: now the current datetime is automatically generated by the Google Sheets card that I use for exporting my data. I will need to get the current datetime in a different way before I do the conversion to epoch.

EDIT: I found this discussion, this will give me the thing I look for when I let it return unixTimestamp

> [@Need help with homeyscript](https://community.homey.app/t/need-help-with-homeyscript/79813/7):
>
> @robertklep Thanks! A little hacking and googling, this seems to work slight_smile // Get the current Unix timestamp (epoch) in seconds const unixTimestamp = Math.floor(Date.now() / 1000); //console.log(unixTimestamp); //console.log("Encoded string: "+ Buffer.from(unixTimestamp.toString()).toString('Base64')); //console.log("Decoded string: ", decodedString); return Buffer.from(unixTimestamp.toString()).toString('Base64'); Now, back to the search function for the rest of my query …

---

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