当前位置:网站首页>Gets the current time in character format
Gets the current time in character format
2022-04-23 10:48:00 【A dazed caddie】
#include <stdio.h>
#include <time.h>
#include <string.h>
int main ()
{
¦ time_t timer;
¦ struct tm *Now;
¦ char DateStr[40];
¦ time( &timer );
¦ Now = localtime( &timer );
¦ memset(DateStr, 0, 40);
¦ strftime(DateStr, 40, "%Y-%m-%d %I:%M:%S", Now);
¦ printf(" Current local time and date :%s\n", DateStr);
¦ return(0);
}
版权声明
本文为[A dazed caddie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230618290833.html
边栏推荐
- Solution architect's small bag - 5 types of architecture diagrams
- Hikvision face to face summary
- 图像处理——噪声小记
- Read integrity monitoring techniques for vision navigation systems - 4 multiple faults in vision system
- Differences among restful, soap, RPC, SOA and microservices
- Resolution and size of mainstream mobile phones
- Learning Notes 6 - Summary of several deep learning convolutional neural networks
- ID number verification system based on visual structure - Raspberry implementation
- Introduction to data analysis 𞓜 kaggle Titanic mission (IV) - > data cleaning and feature processing
- Introduction to wechat applet, development history, advantages of applet, application account, development tools, initial knowledge of wxml file and wxss file
猜你喜欢

景联文科技—专业数据标注公司和智能数据标注平台

SQL Server recursive query of superior and subordinate

【省选联考 2022 D2T1】卡牌(状态压缩 DP,FWT卷积)

JVM——》常用命令

How does the swagger2 interface import postman

Ueditor -- limitation of 4m size of image upload component

Manjaro installation and configuration (vscode, wechat, beautification, input method)

基于PyQt5实现弹出任务进度条功能示例
Detailed explanation of MapReduce calculation process

Learning note 5 - gradient explosion and gradient disappearance (k-fold cross verification)
随机推荐
SQLServer 查询数据库死锁
Leetcode22:括号生成
Xshell+Xftp 下载安装步骤
VIM usage
242. Valid Letter ectopic words (hash table)
997. Square of ordered array (array)
MapReduce compression
MySql常用语句
206、反转链表(链表)
/Can etc / shadow be cracked?
Comparison and practice of prototype design of knowledge service app
Download and installation steps of xshell + xftp
一个微博数据库设计带来的简单思考
Yarn core parameter configuration
得到知识服务app原型设计比较与实践
[Niuke challenge 47] C. conditions (BitSet acceleration Floyd)
Solve the problem of installing VMware after uninstalling
Yarn resource scheduler
A diary of dishes | 238 Product of arrays other than itself
SQL Server recursive query of superior and subordinate