vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Sep 2016 04:58 AM |
local lastloginostime = 132342837 local currentostime = os.time() local LastLoginSecondTime = os.difftime(currentostime,lastloginostime)
########################################################################################################Seconds: 36
print(LastLoginSecondTime) local YearsLastLogin = math.floor(LastLoginSecondTime/60/60/24/12/365) local MonthsLastLogin = math.floor((LastLoginSecondTime-(YearsLastLogin*378432000))/60/60/24/12) local DaysLastLogin = math.floor((LastLoginSecondTime-(YearsLastLogin*378432000)-(MonthsLastLogin*1036800))/60/60/24) local HoursLastLogin = math.floor((LastLoginSecondTime-(YearsLastLogin*378432000)-(MonthsLastLogin*1036800)-(DaysLastLogin*86400))/60/60) local MinutesLastLogin = math.floor((LastLoginSecondTime-(YearsLastLogin*378432000)-(MonthsLastLogin*1036800)-(DaysLastLogin*86400)-(HoursLastLogin*3600))/60) local SecondsLastLogin = math.floor((LastLoginSecondTime-(YearsLastLogin*378432000)-(MonthsLastLogin*1036800)-(DaysLastLogin*86400)-(HoursLastLogin*3600)-(MinutesLastLogin*60)))
print("Years: ".. YearsLastLogin) print("Months: ".. MonthsLastLogin) print("Days: ".. DaysLastLogin) print("Hours: ".. HoursLastLogin) print("Minutes: ".. MinutesLastLogin) print("Seconds: ".. SecondsLastLogin) |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Sep 2016 04:59 AM |
| ############ ###### 3 -- I think this was blocked. Months: 198 Days: 3 Hours: 16 Minutes: 1 Seconds: 36 |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
|
| 07 Sep 2016 05:14 AM |
what
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2016 05:38 AM |
Try this https://www.roblox.com/UTC-Time-Module-item?id=232929348 |
|
|
| Report Abuse |
|
|