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 to fully use os.time()?

Previous Thread :: Next Thread 
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
24 Dec 2014 12:08 PM
How do I use the "data table" for os.time?

Do I do this?

os.time("month")
Report Abuse
MilkTreatGolem is not online. MilkTreatGolem
Joined: 23 Aug 2011
Total Posts: 19441
24 Dec 2014 12:46 PM
[ Content Deleted ]
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
24 Dec 2014 12:47 PM
"This forum isn't for help requests, idiot."

wow you're rude

actually this is being used primarily for requests now because SH was destroyed

the old Scripters forum was trash so you cant pretend it lost out on anything
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
24 Dec 2014 12:49 PM
"This forum isn't for help requests, idiot."

How is this a request?
And I don't know the answer. :C


~Master bug finder twitch.tv/ROBLOX/c/4691695 14:08~
Report Abuse
MilkTreatGolem is not online. MilkTreatGolem
Joined: 23 Aug 2011
Total Posts: 19441
24 Dec 2014 12:53 PM
[ Content Deleted ]
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
24 Dec 2014 12:54 PM
you're right

Scripters should be reserved only for Inteleucitail Disuceisions as they used to Occur Here. Some of the Brightest Minds feel like they are being Shunnned from Scripters because they are Too Smart.

stop trying so hard
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
24 Dec 2014 12:55 PM
@Milk, you've called me (and others) names so much, that it's near impossible for you to offend people anymore. Your words have no affect, so you'd might as well give up.
Report Abuse
MilkTreatGolem is not online. MilkTreatGolem
Joined: 23 Aug 2011
Total Posts: 19441
24 Dec 2014 12:56 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
24 Dec 2014 12:58 PM
os.time actually does the opposite of what you are thinking

It returns the seconds between January 1, 1970 and the date given

print(os.time{year=1970, month=1, day=1, hour=0,min = 1, sec = 1})

If you google 'lua os.time()' there is a lua org page about it
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
24 Dec 2014 01:05 PM
Ik it does that, but

I wanna know how to get the current date using it
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Dec 2014 01:07 PM
os.time = since UTC time
tick() = since computer time

since = both from 1970 unix epoch
Report Abuse
MilkTreatGolem is not online. MilkTreatGolem
Joined: 23 Aug 2011
Total Posts: 19441
24 Dec 2014 01:08 PM
[ Content Deleted ]
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
24 Dec 2014 01:09 PM
So then It's not possible to get the numbers of which month, day and year someone was banned?
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
24 Dec 2014 01:11 PM
convert os.time() into readable day & time

now I have a function for it but it's not the cleanest way of doing it because it's pretty long and involves a bunch of math


eLunate has a little thing you can use and you can format it in one line it's good
Report Abuse
ModuleMaker is not online. ModuleMaker
Joined: 26 Sep 2014
Total Posts: 182
24 Dec 2014 01:12 PM
I've also made a RealTime module, that allows you to get the day of the month, what month it is etc.
http://www.roblox.com/RealTimeModule-item?id=188363586

--ModuleMaker
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Dec 2014 03:13 PM
Milk, you can't script thus you shouldn't be here saying that to me.

Look it up on wiki.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
24 Dec 2014 03:18 PM
Oh, yeah I have a thing for that don't I.

preview.
c9.
io/lunate/skyewashere/Time.lua

No idea how ModuleMaker's is though. Anyone know how to get the rawtext from an asset so I can tell you what he's missing out on?
Report Abuse
MilkTreatGolem is not online. MilkTreatGolem
Joined: 23 Aug 2011
Total Posts: 19441
24 Dec 2014 03:43 PM
[ Content Deleted ]
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Dec 2014 03:51 PM
Wow, you're worse than what analyze used to be. I'm amazed.

It must be really gratifying to spend time on the internet doing nothing but being rude.

I really don't care that SH people come here, it is not like you guys ever do anything. It's not like you plan to do anything.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Dec 2014 03:57 PM
^ who jarod :P



@Milk, look up on wiki. I gave a fact.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Dec 2014 03:58 PM
I mean Milk. I somewhat thought that was obvious.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Dec 2014 03:58 PM
Oh, milk was 129K. I'm convinced you can script *looks at profile* but what's with the comment? I still gave a correct fact.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
24 Dec 2014 03:59 PM
os.time returns the unix epoch time in seconds by UTC time
tick() does the same just uses the computer time.

That's what I said, SKID.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Dec 2014 03:59 PM
He just has a thing for wasting time and effort being rude.
Report Abuse
ChiefDelta is not online. ChiefDelta
Joined: 05 Nov 2010
Total Posts: 13071
24 Dec 2014 04:03 PM
129K is like that one troll who actually believes what he says
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