⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ftime.cpp

📁 数据结构常用算法合集
💻 CPP
字号:
//ftime.cpp
#include <iostream.h>
#include <stdlib.h>
#include <time.h>
#include <sys\timeb.h>
#include <conio.h>
/* pacific standard & daylight savings */
char *tzstr = "TZ=PST8PDT";
void main(void)
{
  struct timeb t;
  putenv(tzstr);
  tzset();
  ftime(&t);
  cout<<"自1/1/1970 GMT到"<<ctime(&t.time)<<"的秒数:"<< t.time;
  cout<<"\n千分之秒:"<< t.millitm;
  cout<<"\n当地时间与GMT的差:"<< t.timezone;
  cout<<"\n夏时制(1),无(0):"<< t.dstflag;
  getch();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -