12.02.2014, 03:52
I rly need this but i think it is a little bugged
Output: 2014/2/12 - 6:50:32(bandate) 5/51/12 - 6:50:32(expiredate) 1392180692(unix)
Checked unix online and it is good
Код:
new y, m, d, h, mi, s; getdate(y, m, d); gettime(h, mi, s); format(bandate, sizeof(bandate), "%d/%d/%d - %d:%d:%d", y,m,d,h,mi,s); TimestampToDate(bantime, y, m, d, y, m, s, 1); format(expiredate, sizeof(expiredate), "%d/%d/%d - %d:%d:%d", y,m,d,h,mi,s);
Checked unix online and it is good