Home | History | Annotate | Download | only in tests

Lines Matching refs:date

1279   GTimeVal ref_date, date;
1324 g_assert (g_time_val_from_iso8601 (REF_INVALID1, &date) == FALSE);
1325 g_assert (g_time_val_from_iso8601 (REF_INVALID2, &date) == FALSE);
1326 g_assert (g_time_val_from_iso8601 (REF_STR_UTC, &date) != FALSE);
1329 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1330 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1331 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1333 g_assert (g_time_val_from_iso8601 (REF_STR_CEST, &date) != FALSE);
1336 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1337 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1338 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1340 g_assert (g_time_val_from_iso8601 (REF_STR_EST, &date) != FALSE);
1343 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1344 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1345 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1347 g_assert (g_time_val_from_iso8601 (REF_STR_NST, &date) != FALSE);
1350 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1351 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1352 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1355 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_UTC, &date) != FALSE);
1358 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1359 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1360 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1362 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_CEST, &date) != FALSE);
1365 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1366 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1367 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1369 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_EST, &date) != FALSE);
1372 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1373 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1374 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1376 g_assert (g_time_val_from_iso8601 (REF_STR_USEC_NST, &date) != FALSE);
1379 date.tv_sec, date.tv_usec, ref_date.tv_sec, ref_date.tv_usec,
1380 date.tv_sec - ref_date.tv_sec, date.tv_usec - ref_date.tv_usec);
1381 g_assert (date.tv_sec == ref_date.tv_sec && date.tv_usec == ref_date.tv_usec);
1390 g_print ("\t=> date string = %s (should be: %s)\n", date_str, REF_STR_UTC);
1398 g_print ("\t=> date string = %s (should be: %s)\n", date_str, REF_STR_USEC_UTC);