|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 09 Oct 2013 02:18 PM |
Go to Players Go to Yourself In the Property window find something called AccountAge |
|
|
| Report Abuse |
|
|
|
| 09 Oct 2013 03:24 PM |
^ *facepalm*
"U BROKE THE TV U IDIOT!" - CeaselessSoul |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|