Raised This Month: $ Target: $400
 0% 

[SOLVED] Given Timestamp to Date


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 12-07-2010 , 05:24   [SOLVED] Given Timestamp to Date
Reply With Quote #1

Hi,

is there a feature that you can convert a given timestamp to a date? I haven't found anything in the scripting folder of amxmodx.

Best Regards
Leon
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 12-08-2010 at 03:56.
Leon M. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2010 , 06:52   Re: Given Timestamp to Date
Reply With Quote #2

format_time() and passing your time in the last param.
__________________
Arkshine is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-07-2010 , 08:14   Re: Given Timestamp to Date
Reply With Quote #3

This will put each element of a time\date value in its own integer variable for use if needed. You can convert timestamp->time/date and time/date->timestamp.

http://forums.alliedmods.net/showthread.php?t=91915
__________________

Last edited by Bugsy; 12-07-2010 at 08:18.
Bugsy is online now
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 12-08-2010 , 03:56   Re: Given Timestamp to Date
Reply With Quote #4

Thank you.
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. 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 17:26.


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