Is daylight-saving time handled by RedLib C library?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is daylight-saving time handled by RedLib C library?

跳至解决方案
728 次查看
kackle123
Contributor IV

Does the RedLib C library handle daylight-saving time; the structure member tm_isdst always returns as -1 after calling mktime().

 

 

0 项奖励
回复
1 解答
709 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @kackle123 ,

Thanks for your post.

Sorry, Redlib provides no support for timezones.

BRs,

Celeste

 

------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
710 次查看
Celeste_Liu
NXP Employee
NXP Employee

Hello @kackle123 ,

Thanks for your post.

Sorry, Redlib provides no support for timezones.

BRs,

Celeste

 

------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
696 次查看
kackle123
Contributor IV

Is that the same as daylight-saving time?

0 项奖励
回复
663 次查看
Celeste_Liu
NXP Employee
NXP Employee

Yes, it is the same.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2059683%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A4%8F%E4%BB%A4%E6%97%B6%E6%98%AF%E5%90%A6%E7%94%B1%20RedLib%20C%20%E5%BA%93%E5%A4%84%E7%90%86%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2059683%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ERedLib%20C%20%E5%BA%93%E6%98%AF%E5%90%A6%E5%A4%84%E7%90%86%E5%A4%8F%E4%BB%A4%E6%97%B6%EF%BC%9B%E8%B0%83%E7%94%A8%20mktime()%20%E5%90%8E%EF%BC%8C%E7%BB%93%E6%9E%84%E6%88%90%E5%91%98%20tm_isdst%20%E5%A7%8B%E7%BB%88%E8%BF%94%E5%9B%9E%20-1%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2061994%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A4%8F%E4%BB%A4%E6%97%B6%E7%94%B1%20RedLib%20C%20%E5%BA%93%E5%A4%84%E7%90%86%E5%90%97%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2061994%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%98%AF%E7%9A%84%EF%BC%8C%E6%98%AF%E4%B8%80%E6%A0%B7%E7%9A%84%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2061348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A4%8F%E4%BB%A4%E6%97%B6%E7%94%B1%20RedLib%20C%20%E5%BA%93%E5%A4%84%E7%90%86%E5%90%97%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2061348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%BF%99%E5%92%8C%E5%A4%8F%E4%BB%A4%E6%97%B6%E4%B8%80%E6%A0%B7%E5%90%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E