---
title: "Real time clock | Universal Roblox Script - ScriptBlox"
description: "Real time clock for any Roblox game: This shows the real time"
canonical_url: "https://scriptblox.com/script/Universal-Script-Real-time-clock-13161"
meta:
  "og:description": "Real time clock for any Roblox game: This shows the real time"
  "og:image": "https://scriptblox.com/images/script/2955644-1716050783006.png"
  "og:title": "Real time clock | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Real time clock for any Roblox game: This shows the real time"
  "twitter:image": "https://scriptblox.com/images/script/2955644-1716050783006.png"
  "twitter:title": "Real time clock | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/2955644-1716050783006.png)

# **Real time clock**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![AdorbsxVibesPr3ppy](https://scriptblox.com/images/photo/6570eb9b5d75332ca0540983-1738547621153.png) [AdorbsxVibesPr3ppy](https://scriptblox.com/u/AdorbsxVibesPr3ppy)100 followers**

3 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

This shows the real time

## **Updates **

1. Mar 27, 2025

   ****Script edited:**** Update script
2. Sep 18, 2024

   ****Script edited:**** Update script
3. May 19, 2024

   ****Script edited:**** Update script
4. May 19, 2024

   ****Script edited:**** Update script
5. May 19, 2024

   ****Script edited:**** Update script

[View Raw](https://scriptblox.com/raw/Universal-Script-Real-time-clock-13161)

```
-- Load the Kavo UI library
local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/DenDenZZZ/Kavo-UI-Library/main/Kavo.lua"))()

-- Create the main window
local Window = Library.CreateLib("Real-Time Clock", "Ocean")

-- Create a tab for the clock
local ClockTab = Window:NewTab("Clock")

-- Create a section for the clock display
local ClockSection = ClockTab:NewSection("Real-Time Clock")

-- Create a label to display the time and date
local TimeLabel = ClockSection:NewLabel("Loading...")

-- Function to update the time and date display
local function UpdateTimeDisplay()
    local currentTime = os.date("*t")
    local hour = currentTime.hour
    local minute = string.format("%02d", currentTime.min)
    local second = string.format("%02d", currentTime.sec)
    local ampm = currentTime.hour >= 12 and "PM" or "AM"
    local day = currentTime.day
    local month = currentTime.month
    local year = currentTime.year

    -- Handle special cases for 12 PM and 12 AM
    if hour == 0 then
        hour = 12
    elseif hour > 12 then
        hour = hour - 12
    end

    -- Update the label with the current time and date
    TimeLabel:UpdateLabel(string.format("%02d:%02d:%02d %s\n%02d/%02d/%04d", hour, minute, second, ampm, month, day, year))
end

-- Update the time display every second
while true do
    UpdateTimeDisplay()


```

## **Comments **

**2**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Real-time-clock-13161)

![nam\_'s profile picture](https://scriptblox.com/images/photo/621075d632d0cec1bc3a27da-1776402937648.jpg)

[**nam\_**](https://scriptblox.com/u/nam_)Lv 63 years ago(edited)

thankz my mom wont beat me cuz im late to sleep again !1!1!

1

![CMDS's profile picture](https://scriptblox.com/images/photo/64d3f4e9992ff6b802bb4ab3-1712427214412.png)

[**CMDS**](https://scriptblox.com/u/CMDS)3 years ago(edited)

Best SCRIPT in the World?!!!1?!

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161#script","url":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161","name":"Real time clock","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"AdorbsxVibesPr3ppy","url":"https://scriptblox.com/u/AdorbsxVibesPr3ppy"},"datePublished":"2024-05-18T16:46:23.876Z","image":"https://scriptblox.com/images/script/2955644-1716050783006.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161#webpage","@type":"WebPage","description":"Real time clock for any Roblox game: This shows the real time","name":"Real time clock | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Real-time-clock-13161"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Real-time-clock-13161#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Real time clock","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
