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 » Scripting Helpers
Home Search
 

Re: Getting a users join date?

Previous Thread :: Next Thread 
michaelaqz4 is not online. michaelaqz4
Joined: 23 Sep 2009
Total Posts: 1940
09 Oct 2013 10:28 AM
Is there a way to do this?
I know you can check the AccountAge or whatever for how many days old they are, but is there a way to get their join date?
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
09 Oct 2013 10:36 AM
You can check how old their account is from the script on this page: http://wiki.roblox.com/index.php/AccountAge
You can also use something called "tick()" to get how many seconds have passed since January 1st, 1970.
Using some math, you can turn tick into days, subtract Player.AccountAge from that, and then calculate their join date from your amount of days. I have a script that does this for you at home, but I am currently at school, so I can't provide it to you. Sorry.

This is my siggy when I'm at school c:
Report Abuse
michaelaqz4 is not online. michaelaqz4
Joined: 23 Sep 2009
Total Posts: 1940
09 Oct 2013 10:39 AM
Thats alright, I'd rather make my own anyway x3
But when you get home you could post the script in case someone looks this up someday if you want
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
09 Oct 2013 10:41 AM
Okie dokie. But I usually stay late around the school to hang out with friends, so I may not be home for another 6+ hours.

This is my siggy when I'm at school c:
Report Abuse
michaelaqz4 is not online. michaelaqz4
Joined: 23 Sep 2009
Total Posts: 1940
09 Oct 2013 10:47 AM
So Ima just guess it involves tables right? x3
And will I need to do something special for leap years?
And is there a way to get the current date? That might be easier than tick()
I remember one time I made a ban script useing tick so I could ban for days or hours xD
I was pretty bad at scripting and it was pretty buggy and ugly code..Maybe I should remake it :D
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
09 Oct 2013 10:51 AM
I actually didn't use tables, I just used variables for seconds and such, and did multiplication/divisional and subtraction/addition in a way that resulted in tick being in days. Then I just subtracted AccountAge in days from tick in days, then went and converted that to a date. Instead of busying myself with leap years and such, I used a number that would make all the years the exact same size, but a tiny bit longer to compensate for the leap year.

This is my siggy when I'm at school c:
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
09 Oct 2013 12:52 PM
Just remember these things

Second: math.floor(tick)
Minute: Divide Seconds by 60
Hour: Divide Minute by 60
Days: Divide Hours by 24

You can get Months by the clever use of a table

Year: Divide Days by 365 (366 on leap years) or Months by 12
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
09 Oct 2013 01:07 PM
Remember leap years.
Report Abuse
monkey1589 is not online. monkey1589
Joined: 06 Feb 2010
Total Posts: 2334
09 Oct 2013 02:18 PM
Go to Players
Go to Yourself
In the Property window find something called AccountAge
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
09 Oct 2013 03:24 PM
^ *facepalm*

"U BROKE THE TV U IDIOT!" - CeaselessSoul
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
09 Oct 2013 08:28 PM
I just realized that I formatted my hard drive recently, and I lost the file. So sorry, but I won't be able to provide you with it.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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