Raised This Month: $ Target: $400
 0% 

Get nVault Timestamp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-14-2020 , 18:50   Re: Get nVault Timestamp
Reply With Quote #4

As OciXCrom told you, timestamps and get_systime() are in SECONDS.

Either do the math yourself to convert seconds to hours/minutes/seconds, or you can use the below with this include.

PHP Code:
new iTimestamp get_systime() - 198;
new 
iYears,iMonths,iDays,iHours,iMinutes,iSeconds;

timestamp_diffiTimestamp get_systime() , iYears,iMonths,iDays,iHours,iMinutes,iSeconds );    
server_print"Time Left: %d years, %d months, %d days, %d hours, %d minutes, %d seconds"iYears,iMonths,iDays,iHours,iMinutes,iSeconds ); 
Output
Code:
Time Left: 0 years, 0 months, 0 days, 0 hours, 3 minutes, 18 seconds
__________________

Last edited by Bugsy; 05-14-2020 at 18:50.
Bugsy is offline
 



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:06.


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