Skip to content

Open-GTO/time_t

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple timestamp converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages