Hi,
I'm trying to create a folder on an sd card. When I used the following mkdir("/sdcard/sysdl") I get a folder that is created on the sd card named sysdl. I've noticed that, when looking at the sd card in windows explorer, the date on the folder is 12/31/1979 at 11:00 pm.
Does anyone know of a method to put the current date using mkdir? I have an RTC on my board so I can provide the date/time in any format required, just don't know how to modify mkdir call appropriately.
Thanks,
mkdir
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: mkdir
I think those calls use the system time... if you have a RTC, you can probably use the settimeofday() call to inform ESP-IDF of the correct date and time.
Who is online
Users browsing this forum: No registered users and 65 guests