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 i use os.time?

Previous Thread :: Next Thread 
ComradeREKTangle is online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
23 May 2016 09:21 PM
roblox wiki doesnt really explain it

Report Abuse
DataFlame is not online. DataFlame
Joined: 02 Dec 2011
Total Posts: 8931
23 May 2016 09:24 PM
I've never used it, but is it any different from tick()?
Report Abuse
ComradeREKTangle is online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
23 May 2016 09:35 PM
i think os.time is used for getting the time between a player last joined

Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 May 2016 09:40 PM
os.time does not use local time, so it is more secure for daily logins because it doesn't matter what timezone the server is at.
It also is an integer, where as tick is preferred for super-accurate time intervals because it goes to microseconds and beyond.


Report Abuse
ComradeREKTangle is online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
23 May 2016 09:42 PM
how do i use it tho?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 May 2016 09:45 PM
It's a function.

os.time()


Report Abuse
ComradeREKTangle is online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
23 May 2016 09:45 PM
example please?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
23 May 2016 09:47 PM
print(os.time())


Report Abuse
ComradeREKTangle is online. ComradeREKTangle
Joined: 07 Feb 2010
Total Posts: 850
23 May 2016 09:50 PM
how would i use it to tell when a player joined last?
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
23 May 2016 09:50 PM
you would need to store it in a datastore and compair


Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
23 May 2016 09:59 PM
^
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