Time (DateTime, os.date(), tick()) – Roblox Advanced Scripting #28
Learn how to keep track of time in Roblox Studio with this updated tutorial video covering modern methods of doing so and debunking older, deprecated functions that you shouldn’t use. This video includes DateTime, tick, os.time, os.date, os.difftime, os.clock, universal time, local time, etc.
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
MEMBERSHIPS 🎁
Get Access To My Scripts + More Perks By Becoming a Channel Member! 👇
ADVANCED ROBLOX SCRIPTING SERIES 🔴
BEGINNER ROBLOX SCRIPTING SERIES 🟢
TWITTER / X 🐦
https://twitter.com/BrawlBattleRBLX
In this 2023-2024 Guide to Roblox Scripting for Advanced Developers, I will go through everything you need to know to continue scripting on Roblox!
My new mission is to have fun teaching everything I know from developing games on Roblox since 2016. We will dive into scripting concepts as basic as printing to as complicated as raycasting. For every episode of this series, I encourage you to do everything I do to gain experience and let it stick with you so that you can create the games you’re passionate about on your own. Enjoy this series and remember: being a competent scripter takes time and effort so don’t get discouraged if things get too tricky. Remember where your inspirations came from; if you can be a Roblox scripter, then anyone can!
Timestamps:
00:00 Intro
00:16 CONCEPTION
03:58 DateTime Constructors (Universal vs Local Time)
08:25 Elapsed Time (DateTime.now())
11:23 DateTime Formatting (FormatUniversalTime / FormatLocalTime)
15:05 time()
16:46 os.clock()
20:33 DON’T Use These Functions (tick, os.time, date, difftime)
24:00 CHALLENGE (Code Expiration System)
Tags:
DOWNLOAD ROBLOX STUDIO HERE:
https://create.roblox.com
(On the left side under “Quick Links”, click on “Studio” and download)
More Resources:
Helpful Challenge Resource:
https://www.utctime.net/utc-to-est-converter
Epoch Unix Timestamp:
https://www.unixtimestamp.com/
https://devforum.roblox.com/t/the-ultimate-os-time-and-tick-tutorial/1755467
https://create.roblox.com/docs/reference/engine/datatypes/DateTime
https://create.roblox.com/docs/reference/engine/libraries/os