1. 程式人生 > >c語言獲取時間戳

c語言獲取時間戳

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include <time.h>



int main(void)
{

	time_t t;
	t = time(NULL);

	int ii = time(&t);
	printf("ii = %d\n", ii);
	system("pause");
	return 0;
	/*
	ii = 1516020076
	請按任意鍵繼續. . .
	*/
}