samp.directory
← Scripts et bibliothèques

Open-GTO/time_t

Simple timestamp converter

Outil★ 1mis à jour janv. 2018MITPAWNsampctl
Ouvrir sur GitHub

Installer avec sampctl

sampctl package install Open-GTO/time_t

Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.

Dépend de 1 paquet

Utilisé par 1 paquet

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);

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

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