# \[Space-Script\] Time left in day with progress bar visual

**URL:** <https://community.silverbullet.md/t/space-script-time-left-in-day-with-progress-bar-visual/1681>\
**Category:** Tricks & Techniques\
**Created:** [January 21, 2025, 4:00pm UTC](https://community.silverbullet.md/t/space-script-time-left-in-day-with-progress-bar-visual/1681 "2025-01-21T16:00:07Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Mr.Red](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mr.red/32/821_2.png) [@Mr.Red](https://community.silverbullet.md/u/Mr.Red)\
**Post date:** [September 29, 2025, 8:23am UTC](https://community.silverbullet.md/t/space-script-time-left-in-day-with-progress-bar-visual/1681/14 "2025-09-29T08:23:09Z")

</div>

I remade this script in [space-lua] for v2.x.x

👇

> [@Time left in day with progress bar visual - \[space-lua\] version](https://community.silverbullet.md/t/time-left-in-day-with-progress-bar-visual-space-lua-version/3295):
>
> Continuing the discussion from [[Space-Script] Time left in day with progress bar visual](https://community.silverbullet.md/t/space-script-time-left-in-day-with-progress-bar-visual/1681): This is a remake of the above space-script rewritten for v2 in space-lua function timeLeftBar() local now = os.date("\*t") -- get current time as a table local secondsPassed = now.hour \* 3600 + now.min \* 60 + now.sec local totalSeconds = 24 \* 3600 local secondsLeft = totalSeconds - secondsPassed local percentLeft = (secondsLeft / totalSeconds) \* 100 local percentPassed = 100 - percen…

---

_[View the full topic](https://community.silverbullet.md/t/space-script-time-left-in-day-with-progress-bar-visual/1681)._
