samp.directory
← Scripts and libraries

Open-GTO/time_t

Simple timestamp converter

Tool★ 1updated Jan 2018MITPAWNsampctl
Open on GitHub

Install with sampctl

sampctl package install Open-GTO/time_t

Run this in your project folder. sampctl downloads the package and what it depends on.

Depends on 1 package

Used by 1 package

README.md

time_t

Simple timestamp converter functions. Based on Minix gmtime and mktime code.

Usage

new year, month, day, hour, minute, second;
gmtime(gettime(), year, month, day, hour, minute, second);
printf("%02d:%02d:%02d %02d.%02d.%04d", hour, minute, second, day, month, year);
new timestamp = mktime(2015, 11, 23, 01, 18, 04);
printf("%d", timestamp);

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

Open-GTO/time_t: SA-MP Tool | samp.directory