generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do you find actual irl time?

Previous Thread :: Next Thread 
SpeedyJZoel is not online. SpeedyJZoel
Joined: 16 Aug 2010
Total Posts: 2416
24 May 2016 06:34 PM
I've seen it done in games where a gui displays the time and date for you. How?


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
24 May 2016 06:37 PM
tick()
or
os.time()

People will argue about which to use.


Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
24 May 2016 06:40 PM
'People will argue about which to use.

umm no they wont
do you know how to script
you'd use os.time()
no argument


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
24 May 2016 06:41 PM
Did you see the thread about Daily Rewards? Lol there had to be about 40 replies arguing tick() and os.time()


Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
24 May 2016 06:43 PM
theres no argument you would use os.time anyone saying otherwise cant read what they do


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
24 May 2016 06:43 PM
This is exactly what I meant.


Report Abuse
GetTheJobDone is not online. GetTheJobDone
Joined: 20 Apr 2016
Total Posts: 3008
24 May 2016 06:45 PM
we're not arguing i simply advise you look it up on the wiki


Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
24 May 2016 06:47 PM
os.time should be used when you need a consistent time across all clients and servers.

tick should be used when you need the local time.


Report Abuse
Notwal is not online. Notwal
Joined: 31 Dec 2014
Total Posts: 915
24 May 2016 06:47 PM
Which of course I already did. tick() returns local time, and time zones between servers may vary. os.time() returns this time of seconds since the UTC time, meaning that this will (theoretically) be the same on all systems.


Report Abuse
ScriptingRevolution is not online. ScriptingRevolution
Joined: 19 Sep 2015
Total Posts: 528
24 May 2016 06:55 PM
Use a time api.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image