{"id":18625744,"url":"https://github.com/fbiego/esp32time","last_synced_at":"2025-04-03T19:13:23.278Z","repository":{"id":45841227,"uuid":"330607791","full_name":"fbiego/ESP32Time","owner":"fbiego","description":"An Arduino library for setting and retrieving internal RTC time on ESP32 boards","archived":false,"fork":false,"pushed_at":"2024-10-02T08:18:35.000Z","size":75,"stargazers_count":239,"open_issues_count":6,"forks_count":40,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-27T18:11:19.306Z","etag":null,"topics":["arduino","arduino-library","esp32","esp32-arduino","rtc","time"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fbiego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-18T08:55:59.000Z","updated_at":"2025-03-25T00:45:08.000Z","dependencies_parsed_at":"2024-11-14T05:02:05.396Z","dependency_job_id":"f523570e-261d-441a-87cd-54d05b40db4d","html_url":"https://github.com/fbiego/ESP32Time","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiego%2FESP32Time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiego%2FESP32Time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiego%2FESP32Time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbiego%2FESP32Time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbiego","download_url":"https://codeload.github.com/fbiego/ESP32Time/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061886,"owners_count":20877176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","arduino-library","esp32","esp32-arduino","rtc","time"],"created_at":"2024-11-07T04:35:52.901Z","updated_at":"2025-04-03T19:13:23.241Z","avatar_url":"https://github.com/fbiego.png","language":"C++","readme":"# ESP32Time\nAn Arduino library for setting and retrieving internal RTC time on ESP32 boards\n\n[![arduino-library-badge](https://www.ardu-badge.com/badge/ESP32Time.svg?)](https://www.arduinolibraries.info/libraries/esp32-time)\n[![PlatformIO Registry](https://badges.registry.platformio.org/packages/fbiego/library/ESP32Time.svg)](https://registry.platformio.org/libraries/fbiego/ESP32Time)\n\n## Functions\n\n```\nESP32Time rtc(offset); // create an instance with a specifed offset in seconds\nrtc.offset;\t// get or modify the current offset\nsetTime(30, 24, 15, 17, 1, 2021);  // 17th Jan 2021 15:24:30\nsetTime(1609459200);  // 1st Jan 2021 00:00:00\nsetTimeStruct(time);\t// set with time struct\n\ngetTime()          //  (String) 15:24:38\ngetDate()          //  (String) Sun, Jan 17 2021\ngetDate(true)      //  (String) Sunday, January 17 2021\ngetDateTime()      //  (String) Sun, Jan 17 2021 15:24:38\ngetDateTime(true)  //  (String) Sunday, January 17 2021 15:24:38\ngetTimeDate()      //  (String) 15:24:38 Sun, Jan 17 2021\ngetTimeDate(true)  //  (String) 15:24:38 Sunday, January 17 2021\n\ngetMicros()        //  (unsigned long)    723546\ngetMillis()        //  (unsigned long)    723\ngetEpoch()         //  (unsigned long)    1609459200\ngetLocalEpoch()    //  (unsigned long)    1609459200 // local epoch without offset\ngetSecond()        //  (int)     38    (0-59)\ngetMinute()        //  (int)     24    (0-59)\ngetHour()          //  (int)     3     (1-12)\ngetHour(true)      //  (int)     15    (0-23)\ngetAmPm()          //  (String)  PM\ngetAmPm(true)     //  (String)  pm\ngetDay()           //  (int)     17    (1-31)\ngetDayofWeek()     //  (int)     0     (0-6)\ngetDayofYear()     //  (int)     16    (0-365)\ngetMonth()         //  (int)     0     (0-11)\ngetYear()          //  (int)     2021\n\ngetTime(\"%A, %B %d %Y %H:%M:%S\")   // (String) returns time with specified format \n```\n[`Formatting options`](http://www.cplusplus.com/reference/ctime/strftime/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbiego%2Fesp32time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbiego%2Fesp32time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbiego%2Fesp32time/lists"}