ESPTime::strptime alternate formats #3563
Unanswered
rcswift
asked this question in
Component enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
ESPTime
Link to component documentation on our website
https://api-docs.esphome.io/structesphome_1_1_e_s_p_time#a693cbf767073ca0a9529951963805388
Describe the enhancement
Currently the ESPTime::strptime method is limited to a select few formats for parsing timestamps.
It would be helpful to expand support to include an override with a
formatparameter, as with the standard Cstrftime, for parsing arbitrary timestamp formats.If for whatever reason that is impractical, it would be helpful to expand support to include the full ISO8601 timestamp format (e.g.
2026-03-09T20:50:00+00:00).Use cases
When retrieving weather forecast data from HomeAssistant, the datetime of the forecast is provided as an ISO8601 format string:
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions