[ H3LP ] Unix time
Hello, I'm developing a ban system with vault/unix time. I've some doubts:
1. How I can add minutes to a unix time? 2. How I can get when systime reach a unix time/date that I given? (set_task? server_frame?) |
Re: [ H3LP ] Unix time
Hello.
1. Unix time count is in seconds, just add seconds to the unixtime you have. 2. if (your current timestamp >= date you given) { what you want ...} I think that is what you need |
Re: [ H3LP ] Unix time
1. get_systime() + (20 minutes * 60 seconds). Ok, I got it.
2. So, loop a task and check as an you've shown. Ok. |
Re: [ H3LP ] Unix time
Quote:
|
All times are GMT -4. The time now is 08:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.