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

#include "../include/uirc.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
char buffer[26];
time_t res = 1130620230;
if (Assm_tag_timestamp(buffer, sizeof(buffer), res) && strcmp("2005-10-29T21:10:30.000Z", buffer) == 0)
return EXIT_SUCCESS;
return EXIT_FAILURE;
}