foss-for-synopsys-dwc-arc-processors / embarc_osp

embARC Open Software Platform (OSP) - An embedded software distribution for IoT and other embedded applications for ARC
https://www.embarc.org/
BSD 3-Clause "New" or "Revised" License
70 stars 63 forks source link

update date and time #165

Open darko262 opened 3 years ago

darko262 commented 3 years ago

Question

I occupy the library but the time and date are not updated. How do I update the date and time on the device?

YuguoWH commented 3 years ago

Could you please provide more details?

darko262 commented 3 years ago

I am capturing data from the digital analago converter and I want to add the date and time, for this I was occupying the library in which it shows me the date and time but June 2020. My question is if the date and time of the device can be updated

darko262 commented 3 years ago

also if I save a file on the card I get that date that I mentioned earlier

YuguoWH commented 3 years ago

I was occupying the library

not sure what this means. And I'd like to know which function and which toolchain you are using, because here we could see the handling is different for MetaWare and GNU toolchain:

https://github.com/foss-for-synopsys-dwc-arc-processors/embarc_osp/blob/87e8c1dd7b5d757622bec83b6eabf3261ca7af30/library/clib/embARC_syscalls.c#L584-L626