Raised This Month: $ Target: $400
 0% 

transform seconds in date


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Iulyy
Junior Member
Join Date: Sep 2007
Location: Romania
Old 02-25-2009 , 14:42   transform seconds in date
Reply With Quote #1

What function is to transform a nr of seconds in date? And can you give me a example please? Thank you!
__________________
loading...
Iulyy is offline
Send a message via Yahoo to Iulyy
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-25-2009 , 15:30   Re: transform seconds in date
Reply With Quote #2

Moved to Scripting Help.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Iulyy
Junior Member
Join Date: Sep 2007
Location: Romania
Old 02-25-2009 , 15:40   Re: transform seconds in date
Reply With Quote #3

Sorry about that, it wasn't intentionally.
__________________
loading...
Iulyy is offline
Send a message via Yahoo to Iulyy
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-25-2009 , 15:43   Re: transform seconds in date
Reply With Quote #4

http://www.amxmodx.org/funcwiki.php?go=func&id=250
__________________

Community / No support through PM
danielkza is offline
Iulyy
Junior Member
Join Date: Sep 2007
Location: Romania
Old 02-25-2009 , 16:22   Re: transform seconds in date
Reply With Quote #5

Code:
 
format_time(date, 31, "%d.%m.%Y %H:%M:%S");
Already tryed, but i don't know for sure if is corectly, i tested and is the curent time wich i don't want that, i want to create the date with my own var off seconds.
__________________
loading...
Iulyy is offline
Send a message via Yahoo to Iulyy
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-25-2009 , 16:27   Re: transform seconds in date
Reply With Quote #6

Quote:
Originally Posted by Iulyy View Post
Code:
 
format_time(date, 31, "%d.%m.%Y %H:%M:%S");
Already tryed, but i don't know for sure if is corectly, i tested and is the curent time wich i don't want that, i want to create the date with my own var off seconds.
You hate to pass your time as the last argument.
__________________

Community / No support through PM
danielkza is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-25-2009 , 17:29   Re: transform seconds in date
Reply With Quote #7

Quote:
Originally Posted by Iulyy View Post
What function is to transform a nr of seconds in date? And can you give me a example please? Thank you!
nr?

Quote:
Originally Posted by danielkza View Post
You hate to pass your time as the last argument.
hate? (lol) have

You mean the last argument is the "timestamp" (seconds from the unix epoch) like in php?
__________________
fysiks is offline
Iulyy
Junior Member
Join Date: Sep 2007
Location: Romania
Old 02-25-2009 , 17:30   Re: transform seconds in date
Reply With Quote #8

Thank you, i made it!
__________________
loading...
Iulyy is offline
Send a message via Yahoo to Iulyy
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-25-2009 , 17:37   Re: transform seconds in date
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
nr?



hate? (lol) have

You mean the last argument is the "timestamp" (seconds from the unix epoch) like in php?
Yep, correct.

And fixed typo
__________________

Community / No support through PM
danielkza is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode