PSoC5 RTC- Unix time

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello All,

I need to generate timestamp in Unix /Epoch time in my PsoC5LP project.

However there is no API to set/get time in Unix format with PSoC5LP RTC.

I see that PsoC4BLE device's RTC support Get_Unix_Time() and Set_Unix_Time APIs.

Can someone help me with Unix time in PsoC5 RTC?

Are there any common libraries available for datetime to unix time and vice versa for PsoC?

Is it possible to port the APIs from PsoC4 to PsoC5?

Regards,

Reshmi

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello Reshmi,

Yes there are no APIs present for PSoC 5LP as such. But you can port the APIs from PSoC 4 to PSoC 5 as attached along with this thread by making some changes.

Regards,

Dheeraj

View solution in original post

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello Reshmi,

Yes there are no APIs present for PSoC 5LP as such. But you can port the APIs from PSoC 4 to PSoC 5 as attached along with this thread by making some changes.

Regards,

Dheeraj

0 Likes