time_t 是什么原始数据类型? [英] What primitive data type is time_t?

查看:22
本文介绍了time_t 是什么原始数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道time_t 的数据类型.它是 float double 还是其他什么?因为如果我想显示它,我需要与 printf 对应的标签.我可以从那里处理其余的用于显示 time_t 但我需要知道与之对应的数据类型.

I do not know the data type of time_t. Is it a float double or something else? Because if I want to display it I need the tag that corresponds with it for printf. I can handle the rest from there for displaying time_t but I need to know the data type that corresponds with it.

推荐答案

不幸的是,它不是完全可移植的.它通常是整数,但它可以是任何整数或真正的浮动类型".

Unfortunately, it's not completely portable. It's usually integral, but it can be any "integer or real-floating type".

这篇关于time_t 是什么原始数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆