struct tm的定义在<time.h>中,是9个int。
struct tm {
int tm_sec; /* seconds after the minute - [0,59] */
int tm_min; /* minutes after the hour - [0,59] */
int tm_hour; /* hours since midnight - [0,23] */
int tm_mday; /* day of the month - [1,31] */
int tm_mon; /* months since January - [0,11] */
int tm_year; /* years since 1900 */
int tm_wday; /* days since Sunday - [0,6] */
int tm_yday; /* days since January 1 - [0,365] */
int tm_isdst; /* daylight savings time flag */
};
struct tm {
int tm_sec; /* seconds after the minute - [0,59] */
int tm_min; /* minutes after the hour - [0,59] */
int tm_hour; /* hours since midnight - [0,23] */
int tm_mday; /* day of the month - [1,31] */
int tm_mon; /* months since January - [0,11] */
int tm_year; /* years since 1900 */
int tm_wday; /* days since Sunday - [0,6] */
int tm_yday; /* days since January 1 - [0,365] */
int tm_isdst; /* daylight savings time flag */
};
解决方案 »
- WPF中关于controltemplete的用法
- 如何将2个整型数转成字符串?
- 关于文本框的事件
- C# 获取进程列表,包括后缀。
- 求问,大型超市一般在18点到20点访问对数据库访问比较频繁
- 请教c#+access 登录的问题
- 关于给cookie起名的问题
- 请教DataGrid问题:(急用)
- Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll哪里可以下载
- UTF-8怎么转换成GB2312
- 关于序列化,这段代码中,为什么要info.GetInt32()?
- 如何让 ListView 只显示有 Item 的行的线, 没有 Item 的行不显示水平线
public struct Time
{
public int tm_sec;
public int tm_min;
public int tm_hour;
public int tm_mday;
public int tm_mon;
public int tm_year;
public int tm_wday;
public int tm_yday;
public int tm_isdst;
}