|
|
#1 |
|
Little Clucker
![]() Join Date: Mar 2011
Posts: 28
Reputation: 0
|
Hi, i need Script Modification, which calculated Unix Time.
It's about the time in seconds that has elapsed since 1 January 1970. |
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Feb 2010
Location: Germany
Posts: 634
Reputation: 44
|
|
|
|
|
|
#3 |
|
Little Clucker
![]() Join Date: Mar 2011
Posts: 28
Reputation: 0
|
And how to move from unix time to "Normal"?
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Feb 2010
Location: Germany
Posts: 634
Reputation: 44
|
write a function to calculate it
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2010
Location: Norway
Posts: 1,767
Reputation: 23
|
pawn Code:
Example : pawn Code:
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Location: Belgium
Posts: 4,894
Reputation: 1418
|
If you use MySQL:
pawn Code:
|
|
|
|
|
#7 |
|
Little Clucker
![]() Join Date: Mar 2011
Posts: 28
Reputation: 0
|
Thanks
|
|
|
|
|
#8 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,301
Reputation: 1909
|
What the heck? "gettime" returns the unix timestamp vastly faster than MySQL possibly could!
|
|
|
|
|
#9 |
|
Little Clucker
![]() Join Date: Mar 2011
Posts: 28
Reputation: 0
|
Y_Less, yes of course, gettime is very fast, but I'm can't use this function. If PAWN to have as many options as php, it would be good, but unfortunately no.
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2010
Location: Norway
Posts: 1,767
Reputation: 23
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ..::Unix-RolePlay::.. | darreugne | Français/French | 1 | 02/02/2011 10:25 PM |
| lvrcr time stand time start on 12:00 go to 12:59 and then go back to 12:00 | ownboy | Help Archive | 2 | 24/02/2010 06:53 PM |
| In game time not match real time | speedy199 | Help Archive | 3 | 01/04/2009 10:41 AM |