刘员外__

关注

C++_格式化输出时分秒

刘员外__

关注

阅读 65

2022-01-09

#include<time.h>
#include   <fstream> 
#include   <string> 
#include <iostream>
using namespace std;//cout

time_t now = time(0);
tm ltm;

now = time(0);
localtime_s(&ltm, &now);

printf("%d:%d:%d#收到触发信号\n", ltm.tm_hour, ltm.tm_min, ltm.tm_sec);

相关推荐

兽怪海北

对象指针输出时分秒

兽怪海北 83 0 0

敬亭阁主

【MySQL】mysql | 年月日时分秒 | 日期格式化

敬亭阁主 91 0 0

天使魔鬼

Cocos number格式转换时分秒格式

天使魔鬼 51 0 0

书呆鱼

js --【秒】 转为 【时分秒】 格式

书呆鱼 69 0 0

苦茶如歌

MySQL、Oracle、Java格式化日期为年月日时分秒

苦茶如歌 167 0 0

攻城狮Chova

python 去掉时分秒

攻城狮Chova 83 0 0

杨沐涵

Oracle 加时分秒

杨沐涵 26 0 0

非常帅气的昵称吧

python 时间格式不需要时分秒

非常帅气的昵称吧 13 0 0

江南北

[C++][ubuntu]将本地时间格式化为年月日时分秒

江南北 8 0 0

奔跑的酆

java距离时分秒

奔跑的酆 38 0 0

精彩评论(0)

0 0 举报