Unixtimestamp to Readable Date (Days)
#1

Hello.
I read ___'s Unix Timestamp tutorial.
And i finally make a Temporary VIP System using the Unix Timestamp.

However,
There is problems on it, I want to display a client showing how many days (or what date) will the VIP expired.

The timec function results 52.

- timec(gettime()-TheTimeStamp)

Here is the timestamp i'm trying to display into readable date (days)

Код:
1381201221
And this is how i made the days into unix timestamp

pawn Код:
new expired = gettime()+(days*86400);
Base on ___'s tutorial.

I heard converting it is pretty hard, leap years etc...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)