Skip to content

Calculates the difference between two dates in the old format. (Using C Language without any extra library)

License

Notifications You must be signed in to change notification settings

BaseMax/DateDifferC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Date Differ C

Calculates the difference between two dates in the old format. (Using C Language without any extra library)

Using

$ gcc date-diff.c test.c -o date-diff
./date-diff

Example

const char* date_start = "1970-01-01 00:00:01";
const char* date_end = "2038-01-19 03:14:07";

char* diff_ago = date_diff(date_start, date_end);
printf("%s\n", diff_ago); // 68 years ago

diff_ago = date_diff(date_end, date_start);
printf("%s\n", diff_ago); // 68 years ago

© Copyright 2022, Max Base

About

Calculates the difference between two dates in the old format. (Using C Language without any extra library)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages