31.10.2011, 07:27
Quote:
any Unix-timestamp conversions available?
Plugin could come in handy though sometimes.. ;P |
pawn Код:
new
tm <tmStamp>
;
localtime(254545645, tmStamp);
static
szStr[64]
;
strftime(szStr, sizeof(szStr), "%A %d %B %Y, %H:%M:%S", tmStamp); // Result: "Wednesday 25 January 1978, 04:07:25"
printf(szStr);
I have no Linux installed right now. Will do it and post here when I'm done compiling.
If anyone else can compile to for Linux, please go ahead. And thanks for the comments.