This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
uIRC/tests/timestamp.c

15 lines
303 B
C
Raw Normal View History

#include "../include/uirc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char buffer[26];
time_t res = 1130620230;
2020-11-03 21:34:51 +00:00
if (Assm_tag_timestamp(buffer, sizeof(buffer), res) && strcmp("2005-10-29T21:10:30.000Z", buffer) == 0)
return EXIT_SUCCESS;
return EXIT_FAILURE;
}
2020-10-02 12:40:15 +00:00