TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

BaseMax / DateDifferC

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

3 0 Language: C License: GPL-3.0 Updated: 3y ago

README

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

0 AIs selected
Clear selection
#
Name
Task