SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
timestring.cpp
Go to the documentation of this file.
1
2#include "timestring.h"
3
4namespace sensesp {
5
8
10 char buf[sizeof "2011-10-08T07:07:09Z"];
11 strftime(buf, sizeof buf, "%FT%TZ", gmtime(&input));
12 this->emit(String(buf));
13}
14
15} // namespace sensesp
Construct a new transform based on a single function.
TimeString(String config_path="")
Definition timestring.cpp:6
virtual void set_input(time_t input, uint8_t input_channel=0) override
Definition timestring.cpp:9
The main Transform class. A transform is identified primarily by the type of value that is produces (...
Definition transform.h:54
void emit(T new_value)