tm4c的time.h是否支持夏令时,如果不支持,那要怎么处理才好啊,现在发现时间对不上了
xyz549040622:
还想要夏令时?肯定是不支持的,你可以找找网上有通用的夏令时转换程序,直接使用就好了。
Susan Yang:
您可以参考下附件内的工程
struct tm { int tm_sec; /* seconds after the minute – [0,59] */ int tm_min; /* minutes after the hour – [0,59] */ int tm_hour; /* hours after the 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 Jan 1st – [0,365] */ int tm_isdst; /* Daylight Savings Time flag */#if defined(_AEABI_PORTABILITY_LEVEL) && _AEABI_PORTABILITY_LEVEL != 0 int __extra_1, __extra_2; /* ABI-required extra fields */#endif
};
是定义了夏令时的
Calendar.zip