|
| 24 May 2016 06:34 PM |
I've seen it done in games where a gui displays the time and date for you. How?
|
|
|
| Report Abuse |
|
|
Notwal
|
  |
| Joined: 31 Dec 2014 |
| Total Posts: 915 |
|
|
| 24 May 2016 06:37 PM |
tick() or os.time()
People will argue about which to use.
|
|
|
| Report Abuse |
|
|
|
| 24 May 2016 06:40 PM |
'People will argue about which to use.
umm no they wont do you know how to script you'd use os.time() no argument
|
|
|
| Report Abuse |
|
|
Notwal
|
  |
| Joined: 31 Dec 2014 |
| Total Posts: 915 |
|
|
| 24 May 2016 06:41 PM |
Did you see the thread about Daily Rewards? Lol there had to be about 40 replies arguing tick() and os.time()
|
|
|
| Report Abuse |
|
|
|
| 24 May 2016 06:43 PM |
theres no argument you would use os.time anyone saying otherwise cant read what they do
|
|
|
| Report Abuse |
|
|
Notwal
|
  |
| Joined: 31 Dec 2014 |
| Total Posts: 915 |
|
|
| 24 May 2016 06:43 PM |
This is exactly what I meant.
|
|
|
| Report Abuse |
|
|
|
| 24 May 2016 06:45 PM |
we're not arguing i simply advise you look it up on the wiki
|
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 May 2016 06:47 PM |
os.time should be used when you need a consistent time across all clients and servers.
tick should be used when you need the local time.
|
|
|
| Report Abuse |
|
|
Notwal
|
  |
| Joined: 31 Dec 2014 |
| Total Posts: 915 |
|
|
| 24 May 2016 06:47 PM |
Which of course I already did. tick() returns local time, and time zones between servers may vary. os.time() returns this time of seconds since the UTC time, meaning that this will (theoretically) be the same on all systems.
|
|
|
| Report Abuse |
|
|
| |
|