Convert time to use for _time_set

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Convert time to use for _time_set

ソリューションへジャンプ
1,384件の閲覧回数
cbursk
Contributor I

Hello,

Very new and would appreciate any pointers.  I have an interface where I am getting the current time from a GPS and then want to set the system time to match.  I'm having trouble figuring out how to convert, the time (hours, minutes, seconds, decimal) to a TIME_STRUCT needed by _time_set().

 

Any ideas?

Thanks!

0 件の賞賛
返信
1 解決策
695件の閲覧回数
EAI
Contributor IV

Fill in a DATE_STRUCT and use _time_from_date, or fill in an MQX_XDATE_STRUCT, use _time_xdate_to_ticks followed by _time_set_ticks.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
696件の閲覧回数
EAI
Contributor IV

Fill in a DATE_STRUCT and use _time_from_date, or fill in an MQX_XDATE_STRUCT, use _time_xdate_to_ticks followed by _time_set_ticks.

0 件の賞賛
返信
695件の閲覧回数
cbursk
Contributor I
Thank you!
0 件の賞賛
返信