[Plain Text] 纯文本查看 复制代码
bool setcookie ( string $name[, string $value [, int $expire = 0 [, string $path [, string $domain[, bool $secure = false [, bool $httponly = false ]]]]]] )
[C++] 纯文本查看 复制代码
// tmp.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
setlocale(LC_ALL, "chs");
FILETIME ftLocal;
ftLocal.dwLowDateTime = 1135422565;
ftLocal.dwHighDateTime = 30230664;
SYSTEMTIME st;
FileTimeToSystemTime(&ftLocal, &st); //文件时间转为系统时间
_tprintf (TEXT("%4d年%2d月%2d日 %2d:%2d:%2d\n"), st.wYear, st.wMonth, st.wDay, st.wHour + 8, st.wMinute, st.wSecond);
return 0;
}