This component is based on DS1307 component developed by Ruslan V. The original component can be accessed through the link below:
https://github.com/UncleRus/esp-idf-lib
This particular repository is a complete example project with the modified component to control DS1338. Some minor modifications were made regarding functions like functions renaming, I2C addressing, and time structure.
1 - Create a new project
2 - Copy the component folder
3 - Copy the main.c file
For more information about the functions, see the original DS1307 documentation in the link below:
https://esp-idf-lib.readthedocs.io/en/latest/groups/ds1307.html